yasirkula / UnityRuntimeInspector

Runtime Inspector and Hierarchy solution for Unity for debugging and runtime editing purposes
MIT License
1.68k stars 135 forks source link

Name change in Runtime Inspector event #29

Closed Kundankmr500 closed 3 years ago

Kundankmr500 commented 3 years ago

I am trying to get an event call when the name of gameobject is changed in the Inspector at runtime in Gamview. Can anyone suggest, what event and method I should look for? I have checked in the documentation but unfortunately, I didn't find anything regarding this.

yasirkula commented 3 years ago

There isn't a built-in event for it but you can insert your own event into this section of the code: https://github.com/yasirkula/UnityRuntimeInspector/blob/51ecae619d92f68975c68877f698f40862fcd4d6/Plugins/RuntimeInspector/Scripts/RuntimeInspector/Fields/GameObjectField.cs#L30-L38

Kundankmr500 commented 3 years ago

Thanks, @yasirkula for your suggestion!! This section of the code helped me. :)