|
Init(args)
Scripting Reference
|
◆ Start()
Start is called after the object, and any other objects attached to the same loaded scene or prefab, have been loaded. If the object has been attached to an active GameObject at edit time, then Start is called after the scene or prefab that contains the GameObject has been loaded. If the object is attached to an active GameObject at runtime, then Start is called after a short delay, just before the next IUpdate.Update event. If the object is attached to an inactive GameObject, then Start will only be called when the GameObject becomes active. A class that has the Service attribute receives the event after all services have being initialized, and the initial scene has been loaded. While IAwake.Awake and IOnEnable.OnEnable are called (in that order) immediately for all enabled and active objects when a scene or a prefab is being loaded, Start only gets called after a short delay, just before the first IUpdate.Update event. |