959e80cf72
assets upload description.
22 lines
426 B
C#
22 lines
426 B
C#
|
|
using UnityEngine;
|
|
|
|
[RequireComponent(typeof(Canvas))]
|
|
public class DCanvasComponent : MonoBehaviour
|
|
{
|
|
[HideInInspector] public Canvas m_Canvas;
|
|
|
|
private void Awake()
|
|
{
|
|
m_Canvas = GetComponent<Canvas>();
|
|
DCanvasLayerHandler.iAddCanvas(m_Canvas, false);
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
m_Canvas = GetComponent<Canvas>();
|
|
DCanvasLayerHandler.iAddCanvas(m_Canvas);
|
|
}
|
|
|
|
}
|