- Home /
before and after apply prefab changes callback
i am making editor tool and i have 2 question , how i get call back before hit apply changes of brefab so i can make some changes for game object before saving and then after finish i need finish call to make some changes again
another question is there call back to check if i drag drop prefab to scene
oh yea another small question , i did create asset menu item to create my asset , how i force editor to go to rename mode for that asset ( same for what is happening in creating prefab , unity editor select prefab and put it in rename mode ).
thanks.
any one ? this is important for me , i need to make some sort of nested prefab , and i need these call backs
You could use the PrefabUtility class to track the modifications made to the Prefab and generate your own callbacks based on the properties you need to track
Your answer
Follow this Question
Related Questions
How to handle a "remove component" from a prefab - Editor callbacks 1 Answer
Getting properties on 'missing' things in Editor Scripts? 4 Answers
The Script Equivilent of dragging a hierarchy of meshes over a preexisting prefab? 0 Answers
Editor utility for handling nested prefabs.. 4 Answers
Editor script - any callback when target is first instantiated? 1 Answer