Quantcast
Channel: Answers for "get all scripts attached to gameobject"
Browsing index pages (4 articles)

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

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
Browsing index pages (4 articles)


Latest Images