|
Empeld
Empeld plugin documentation.
|
An interface that represents a model Instance An instance is a readonly model with extra data specific to an instance This model has not been instantiated in the world More...
Public Member Functions | |
| void | QueueAnimation (ModelAnimation mode, ModelAnimationFlag flag=ModelAnimationFlag.Default) |
| Queue an animation, to be played More... | |
| void | QueueAnimation (string slug, ModelAnimationFlag flag=ModelAnimationFlag.Default) |
| Queue animation, by name, to be played More... | |
| bool | IsGroupVisible (string groupName) |
| Determines whether or not a group, by name, is visible More... | |
| void | SetGroupVisibility (string groupName, bool visible) |
| Sets a group names visibility More... | |
| void | SetAllVisibility (bool visible) |
| Sets all visibility of all groups in the model More... | |
| Matrix4 | GetFinalTransform () |
| Gets the final computed transform, after both the instance matrix, and the model's matrix, have been applied More... | |
| IModelInstance | GetGroupComponent (string name) |
| Get a sub-component of the model instance (eg an assembled model) Not supported by all model types More... | |
| bool | TryGetLabelPosition (string name, out Vector3 vec) |
| Gets position by label name (transformed) More... | |
Properties | |
| IReadonlyModel | Model [get] |
| The reference to the model the instances is of More... | |
| ModelAnimation | CurrentAnimation [get] |
| The current animation the instance is playing, if any More... | |
| float | CurrentFrame [get] |
| The current frame the instance is playing, if any More... | |
| bool [] | VisibleGroupMap [get] |
| Gets the visible group map. More... | |
| Matrix4 | Transform [get, set] |
| An instance-level model transformation matrix More... | |
| AxisAlignedBox | CurrentBoundingBox [get] |
| Get the current bounding box, after transforms have been applied. Uses the current animated frame More... | |
| IEnumerable< IModelInstance > | GroupComponents [get] |
| Get all sub-components of a model More... | |
Events | |
| Action< IModelInstance > | OnAnimationComplete |
| Occurs when animation completes. More... | |
An interface that represents a model Instance An instance is a readonly model with extra data specific to an instance This model has not been instantiated in the world
| Matrix4 pluginbase.Objects.Models.IModelInstance.GetFinalTransform | ( | ) |
Gets the final computed transform, after both the instance matrix, and the model's matrix, have been applied
| IModelInstance pluginbase.Objects.Models.IModelInstance.GetGroupComponent | ( | string | name | ) |
Get a sub-component of the model instance (eg an assembled model) Not supported by all model types
| name | Name. |
| bool pluginbase.Objects.Models.IModelInstance.IsGroupVisible | ( | string | groupName | ) |
Determines whether or not a group, by name, is visible
true if this instance is group visible the specified groupName; otherwise, false.| groupName | Group name. |
| void pluginbase.Objects.Models.IModelInstance.QueueAnimation | ( | ModelAnimation | mode, |
| ModelAnimationFlag | flag = ModelAnimationFlag.Default |
||
| ) |
Queue an animation, to be played
| mode | Mode. |
| flag | Flags to specify how the animation progresses |
| void pluginbase.Objects.Models.IModelInstance.QueueAnimation | ( | string | slug, |
| ModelAnimationFlag | flag = ModelAnimationFlag.Default |
||
| ) |
Queue animation, by name, to be played
| slug | Slug. |
| flag | Flags to specify how the animation progresses |
| void pluginbase.Objects.Models.IModelInstance.SetAllVisibility | ( | bool | visible | ) |
Sets all visibility of all groups in the model
| visible | If set to true visible. |
| void pluginbase.Objects.Models.IModelInstance.SetGroupVisibility | ( | string | groupName, |
| bool | visible | ||
| ) |
Sets a group names visibility
| groupName | Group name. |
| visible | If set to true visible. |
| bool pluginbase.Objects.Models.IModelInstance.TryGetLabelPosition | ( | string | name, |
| out Vector3 | vec | ||
| ) |
Gets position by label name (transformed)
| name | Name. |
|
get |
The current animation the instance is playing, if any
The current animation.
|
get |
Get the current bounding box, after transforms have been applied. Uses the current animated frame
The current bounding box.
|
get |
The current frame the instance is playing, if any
The current frame.
|
get |
Get all sub-components of a model
The components.
|
get |
The reference to the model the instances is of
The model.
|
getset |
An instance-level model transformation matrix
The transform.
|
get |
Gets the visible group map.
The visible group map.
| Action<IModelInstance> pluginbase.Objects.Models.IModelInstance.OnAnimationComplete |
Occurs when animation completes.