Represents skinning data for rigged meshes. See also: MeshVisual.

interface Skin {
    enabled: boolean;
    sceneObject: SceneObject;
    uniqueIdentifier: string;
    clearBones(): void;
    destroy(): void;
    getSceneObject(): SceneObject;
    getSkinBone(boneName: string): SceneObject;
    getSkinBoneNames(): string[];
    getTransform(): Transform;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    setSkinBone(boneName: string, bone: SceneObject): void;
}

Hierarchy (view full)

Properties

enabled: boolean

If disabled, the Component will stop enacting its behavior.

sceneObject: SceneObject
uniqueIdentifier: string

Methods

  • Remove all bones on the skin.

    Returns void

  • Destroys the component.

    Returns void

  • Get all the bone names on the skin.

    Returns string[]

  • Returns the name of this object's type.

    Returns string

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean

  • Parameters

    Returns void