Returns whether the component is valid. A component is
considered valid if its owner is valid, in addition to any
addition to any additional validation required by the
component.
只读typeId
typeId:string
备注
Identifier of the component.
方法
resetToDefaultValue
resetToDefaultValue():void
世界修改
返回 void
备注
Resets the current value of this attribute to the defined
default value.
抛出
This function can throw errors.
resetToMaxValue
resetToMaxValue():void
世界修改
返回 void
备注
Resets the current value of this attribute to the maximum
defined value.
抛出
This function can throw errors.
resetToMinValue
resetToMinValue():void
世界修改
返回 void
备注
Resets the current value of this attribute to the minimum
defined value.
抛出
This function can throw errors.
setCurrentValue
setCurrentValue(value:number):boolean
世界修改
参数
value: number
返回 boolean
备注
Sets the current value of this attribute. The provided value
will be clamped to the range of this attribute.
This is a base abstract class for any entity component that centers around a number and can have a minimum, maximum, and default defined value.