Property

Property class

Class to hold user-defined properties. @hideconstructor

Methods

getValue

NameDescription
getValue()Gets or sets the value. The value.

Result:


setValue

NameDescription
setValue(value)Gets or sets the value. The value.

Result:


setName

NameDescription
setName(value)

Result:


getValueType

NameDescription
getValueType()Gets the type of the property value. The type of the value.

Result:


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result:


getBindPoint

NameDescription
getBindPoint(anim, create)Gets the property bind point on specified animation instance.

Parameters:

NameTypeDescription
animAnimationNodeOn which animation to create the bind point.
createbooleanCreate the property bind point if it’s not found.

Result: BindPoint


getKeyframeSequence

NameDescription
getKeyframeSequence(anim, create)Gets the keyframe sequence on specified animation instance.

Parameters:

NameTypeDescription
animAnimationNodeOn which animation to create the keyframe sequence.
createbooleanCreate the keyframe sequence if it’s not found.

Result: KeyframeSequence


toString

NameDescription
toString()Returns a string that represents the current Property.

Result: String


removeProperty

NameDescription
removeProperty(property)Removes a dynamic property.

Parameters:

NameTypeDescription
propertyPropertyWhich property to remove

Result: boolean


removeProperty

NameDescription
removeProperty(property)Remove the specified property identified by name

Parameters:

NameTypeDescription
propertStringnull

Result: boolean


getProperty

NameDescription
getProperty(property)Get the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name

Result: Object


setProperty

NameDescription
setProperty(property, value)Sets the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name
valueObjectThe value of the property

Result: Object


findProperty

NameDescription
findProperty(propertyName)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

NameTypeDescription
propertyNameStringProperty name.

Result: Property