Математика |
Model resources are pieces of 3D geometry that can be used to display 3D models. Model resources are visible only when they are used by a model. Model resources are reusable, and multiple models can share the same model resource.
The following cast member methods and properties perform basic model resource operations:
Method |
Function |
Returns |
---|---|---|
|
Returns the number of model resource objects included in the cast member. |
Integer. |
|
Returns the model resource named |
Returns the model resource object named |
|
Returns the model resource at the designated position in the index. The index number can change if model resources are added or deleted. |
Returns the model resource object at that index number if it exists. Returns
|
|
Creates a new mesh model resource. |
Returns a new mesh model resource with a unique name. If the name isn’t unique, returns a script error. |
|
Creates a new model resource and adds it to the model resource object list.
The |
Returns a new model resource object with a unique name. If the name isn’t unique, returns a script error. |
|
Creates a new model resource with the specified facing and adds it to the
model resource object list. The |
Returns a new model resource object with a unique name. If the name isn’t unique, returns a script error. |
|
Deletes the model resource named |
|
|
Deletes the model resource with the given index number. Script references to this model resource persist but can do nothing. |
|
|