AnimationClip

AnimationClip class

The Animation clip is a collection of animations. The scene can have one or more animation clips.

Methods

constructor

NameDescription
constructor()Initializes a new instance of the AnimationClip class.

Result:


constructor_overload

NameDescription
constructor_overload(name)Initializes a new instance of the AnimationClip class.

Parameters:

NameTypeDescription
nameStringName

Result:


getAnimations

NameDescription
getAnimations()Gets the animations contained inside the clip. The layers.

Result:


getDescription

NameDescription
getDescription()Gets or sets the description of this animation clip

Result:


setDescription

NameDescription
setDescription(value)Gets or sets the description of this animation clip

Result:


getStart

NameDescription
getStart()Gets or sets the time in seconds of the beginning of the clip.

Result:


setStart

NameDescription
setStart(value)Gets or sets the time in seconds of the beginning of the clip.

Result:


getStop

NameDescription
getStop()Gets or sets the time in seconds of the end of the clip.

Result:


setStop

NameDescription
setStop(value)Gets or sets the time in seconds of the end of the clip.

Result:


getScene

NameDescription
getScene()Gets the scene that this object belongs to

Result:


getName

NameDescription
getName()Gets or sets the name. The name.

Result:


setName

NameDescription
setName(value)Gets or sets the name. The name.

Result:


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result:


createAnimationNode

NameDescription
createAnimationNode(nodeName)A shorthand function to create and register the animation node on current clip.

Parameters:

NameTypeDescription
nodeNameStringNew animation node’s name

Result: AnimationNode


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