Quantcast
Channel: Answers for "get all scripts attached to gameobject"
Browsing latest articles
Browse All 4 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

Browsing latest articles
Browse All 4 View Live


Latest Images