Quantcast
Channel: Answers for "get all scripts attached to gameobject"
Browsing all 4 articles
Browse latest View live

Answer by zmar0519

try gameObject.GetComponents(MonoBehaviour). Since all scripts that you can write derive from mono(unless you state that it extends mono, in which case you will have to manually refrence those), it...

View Article



Answer by Aldwoni_legacy

Gameobject ng93; ng93 = new GameObject("NG93"); NG93.AddComponent("Scriptname1"); NG93.AddComponent("Scriptname2");

View Article

Answer by zmar0519

try gameObject.GetComponents(MonoBehaviour). Since all scripts that you can write derive from mono(unless you state that it extends mono, in which case you will have to manually refrence those), it...

View Article

Answer by Aldwoni_legacy

Gameobject ng93; ng93 = new GameObject("NG93"); NG93.AddComponent("Scriptname1"); NG93.AddComponent("Scriptname2");

View Article
Browsing all 4 articles
Browse latest View live




Latest Images