How do you a attach script + event function to another script during runtime in unity?
Hi all,
I'm currently loading models in runtime and configuring them through a control script by adding all the necessary components for my model. Does anyone know how to add a script and event function during runtime? I would ideally like to accomplish the same results as hitting the '+' button in editor and dragging my script and clicking the drop menu for the function that I want, but all using a C# script during runtime. Please see the picture below for more details.
(Green = setting global variable of script from c#. Red = how do I place a script and event function?).
Thank you for your time!
Your answer
Follow this Question
Related Questions
My Character dosen´t move 0 Answers
Displaying Text on Touch Event 0 Answers
how do i make a platform dissapear, as soon as the player touches it? 1 Answer
random spawn enemy problem 0 Answers
Interupting timer causes the next attack to stop the script 0 Answers