hello, is there any way to access several monobehaviour scripts, from an editor?
I am learning and looking for information, I want to access 3 scripts from editor, but I can only access one, using “customeditor” try to use "requirecomponent (typeof), but it did not work.
any ideas?
Thank you!
Not 100% this is what you’re looking for, but perhaps it helps. Accessing other scripts from same gameobject:
gameObject.GetComponent<YourScriptName>();
And to access methods/variables:
gameObject.GetComponent<YourScriptName>().someMethod();
And to access scripts from other gameobjects, set the appropriate scopes in variables or search for them by tags. This post explains it well.
Hope that helps!