void OnEnable() { _t = (AutoNaming)target; if (bPrefab = PrefabHelper.IsPrefab(_t.gameObject)) { return; } OnOffToggle = serializedObject.FindProperty("bAutoName"); Postfix_Sprite = serializedObject.FindProperty("bPostfix_Sprite"); formatString = serializedObject.FindProperty("format"); }
void OnEnable() { if (bPrefab = PrefabUtility.GetPrefabType(target).Equals(PrefabType.Prefab)) { return; } _t = (AutoNaming)target; OnOffToggle = serializedObject.FindProperty("bAutoName"); Postfix_Sprite = serializedObject.FindProperty("bPostfix_Sprite"); formatString = serializedObject.FindProperty("format"); }