Quantcast
Channel: Latest Questions by Selzier
Viewing all articles
Browse latest Browse all 34

[Editor Scripting] Call Function in other GameObjects Editor Script?

$
0
0
I am scripting in an editor script, both GameObjects A and B have the script. In the Editor Script, I have created gameobject B (from A) by using : GameObject objB = null; (it's populated later) Now, I want to call a function on GameObjectB's EDITOR SCRIPT. How can I do this? If I call the function directly: myFunction(); ... then it would be run on Gameobject A. So I'm trying to do something like: objB.getEditorScript().myFunction(); Any tips?

Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>