When adding a Script Component to a Game Object, you need to reference a file containing the code. When manipulating the GameObject in an EditorWindow, how can I fetch the filename of the script attached to the ScriptComponent?
Thanks
When adding a Script Component to a Game Object, you need to reference a file containing the code. When manipulating the GameObject in an EditorWindow, how can I fetch the filename of the script attached to the ScriptComponent?
Thanks
When manipulating a gameobject in the editor window you dont need the scripts filename as all you can really do in the editor window in rotate and move the gameobject.
If by editor window you mean a custom editor for use in the inspector, then getting the name of the script is not possible.