ModelResource

lumin. ModelResource

Resource loads a Model and its mesh and textures etc

Extends

Methods

getAABB() → {lumin.math.AABB}

Returns:
Type
lumin.math.AABB

getAnimationNames() → {Array.<string>}

Returns:

The vector of animation names associated with this ModelResource

Type
Array.<string>

getBasePath() → {string}

Inherited From:

Gets the base path of the resource.

Returns:

Base path

Type
string

getBoneNames() → {Array.<string>}

Returns:

The vector of bone names associated with this ModelResource

Type
Array.<string>

getFileName() → {string}

Inherited From:

Gets the FileName Associated with this resource.

Returns:

Filename

Type
string

getLoadStatus() → {lumin.resources.LoadStatus}

Inherited From:

Return a int that contains the result of loading this resource.

Returns:

int with the result value.

Type
lumin.resources.LoadStatus

getResourceId() → {number}

Inherited From:

Returns the Unique ID of this resource

Returns:

Resource ID

Type
number

getSubMeshNames() → {Array.<string>}

Returns:

The vector of sub mesh names associated with this ModelResource

Type
Array.<string>

isResourceValid() → {boolean}

Inherited From:

Returns True if the Resource was successfully loaded

Loading only happens on the server-side so this call is
only useful to the server

Returns:

TRUE = Successfully loaded

Type
boolean