Firstborn/Assets/SWAN Dev/DynamicUI/DCanvasComponent.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

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);
}
}