Timeline for How to Call a function from another script?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Jan 11, 2021 at 15:18 | history | suggested | D.Kallan |
Unity tag was missing
|
|
| Jan 11, 2021 at 15:17 | comment | added | chuackt | Tested both code and noticed the different, indeed putting the title getting a reference on(existing) object would be more appropriate. Been learning C# fundamental tutorial for sometime yet I do not realize I'm on the wrong direction regarding the usage of "new" operator. Thank again!! | |
| Jan 11, 2021 at 13:03 | comment | added | DMGregory♦ | Why would the colour of your existing Cube1 object change when you called the colour change function on a new Cube1 object? (ie. NOT the one that already exists in your scene/project) Did you try searching for past answers about how to get a reference to an existing object to call a method on it? | |
| Jan 11, 2021 at 13:02 | vote | accept | chuackt | ||
| Jan 11, 2021 at 12:42 | review | Suggested edits | |||
| S Jan 11, 2021 at 15:18 | |||||
| Jan 11, 2021 at 12:35 | answer | added | D.Kallan | timeline score: 1 | |
| S Jan 11, 2021 at 12:35 | history | suggested | D.Kallan | CC BY-SA 4.0 |
Grammar fixes and code snippet fix
|
| Jan 11, 2021 at 12:28 | review | Suggested edits | |||
| S Jan 11, 2021 at 12:35 | |||||
| Jan 11, 2021 at 12:15 | history | asked | chuackt | CC BY-SA 4.0 |