protected override void OnEnable() { if (PrefabUtility.GetPrefabType(this) == PrefabType.Prefab) { EditorUpdate.onEditorUpdate -= OnEditorUpdate; return; } EditorUpdate.Init(); EditorUpdate.onEditorUpdate += OnEditorUpdate; }
protected override void OnEnable() { if (PrefabUtility.GetPrefabType(this) == PrefabType.Prefab) { EditorUpdate.onEditorUpdate -= OnEditorUpdate; return; } EditorUpdate.Init(); EditorUpdate.onEditorUpdate += OnEditorUpdate; m_GraphicRaycaster = GetComponent <GraphicRaycaster>(); if (m_GraphicRaycaster != null) { DestroyImmediate(m_GraphicRaycaster); } m_Canvas = GetComponent <Canvas>(); if (m_Canvas != null) { DestroyImmediate(m_Canvas); } }
public MaterialButton() { EditorUpdate.Init(); EditorUpdate.onEditorUpdate += OnEditorUpdate; }
/// <summary> /// Initializes a new instance of the <see cref="MaterialUIScaler"/> class. /// </summary> public MaterialUIScaler() { EditorUpdate.Init(); EditorUpdate.onEditorUpdate += CheckScaleFactor; }
public MaterialSlider() { EditorUpdate.Init(); EditorUpdate.onEditorUpdate += OnEditorUpdate; }
public MaterialInputField() { EditorUpdate.Init(); EditorUpdate.onEditorUpdate += OnEditorUpdate; }
public VectorImage() { EditorUpdate.Init(); EditorUpdate.onEditorUpdate += OnEditorUpdate; }