Skip to content

ComponentSettings

Script decorator used to control the initialization order of scripts.

静态方法

ComponentSettings.ExecuteOrder ( order : number ) : void
Controls the execution order of the script. The default value is 2000, where smaller values are executed first and larger values are executed later.
ComponentSettings.ExecuteMultiple ( ) : void
By default, only one component of the same type can be added to the same object. After using this decorator, multiple components of the same type can be added to the same object.