using System;
using Deconstruction.Runtime;
#if ODIN_INSPECTOR
using Sirenix.OdinInspector;
#endif
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using XericUI.Form;
namespace XericUI.Core.Base
{
public class XericUIBehaviour : UIBehaviour, IActivity
{
#if ODIN_INSPECTOR
[InfoBox("脚本必填属性存在空引用!请检查开放属性后再试", InfoMessageType.Error, VisibleIf = "PublicFieldNullReference")]
[HideLabel, DisplayAsString]
#endif
string __EMPTYFIELD;
protected bool PublicFieldNullReference;
[System.NonSerialized] private Canvas _canvas;
[System.NonSerialized] private CanvasScaler _canvasScaler;
[System.NonSerialized] private GraphicRaycaster _graphicRaycaster;
[System.NonSerialized] private RectTransform _rect;
///
/// 层级脏(层级被转移)
///
private bool _hierarchyDirty;
///
/// 根布局管理器
///
public Canvas canvas
{
get
{
if (!_canvas) _canvas = GetComponentInParent