private void OnEnable() { self = this; m_position = serializedObject.FindProperty("m_LocalPosition"); m_rotation = serializedObject.FindProperty("m_LocalRotation"); m_scale = serializedObject.FindProperty("m_LocalScale"); EditorApplication.update += Update; }
private void OnDestroy() { self = null; EditorApplication.update -= Update; }