how can i make my game object active after certain time?..thanks
waitforseconds gameobject.enabled
Reasonably sure itβs GameObject.active and Component.enabled.
try this example:
var Object : GameObject; // Drag any object to inspector in unity
function Start() {
yield WaitForSeconds(5); // 5 secs
Object.gameObject.GetComponent(MeshRenderer).enabled = true; // if object is invisible OR use Object.gameObject.active = true;
}
enjoy!