void OnEnable() { if (PrefabUtility.GetCorrespondingObjectFromSource(target) == null && PrefabUtility.GetPrefabInstanceHandle(target) != null) { return; } activeGameObject = (Asset.World.Generator)target; }
void OnDisable() { activeGameObject = null; }