InstancingUserArray Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
System.Object →
InstancingUserArray
Derived from InstancingUserArray: InstancingEntityTransform
[DataContract("InstancingUserArray")]
[Display("UserArray", null)]
public class InstancingUserArray : IInstancing
Name | Description | |
---|---|---|
Fields | ||
WorldInverseMatrices | The inverse instance transformation matrices, updated automatically by the InstancingProcessor. |
|
WorldMatrices | The instance transformation matrices. |
|
Properties | ||
BoundingBox | The bounding box of the world matrices, updated automatically by the InstancingProcessor. |
|
InstanceCount | The instance count |
|
ModelTransformUsage | ||
Methods | ||
Update() | ||
UpdateWorldMatrices(Matrix[], Int32) | Updates the world matrices. |
Fields
WorldInverseMatrices
The inverse instance transformation matrices, updated automatically by the InstancingProcessor.
public Matrix[] WorldInverseMatrices
Field Value
Type | Description |
---|---|
Matrix[] |
WorldMatrices
The instance transformation matrices.
public Matrix[] WorldMatrices
Field Value
Type | Description |
---|---|
Matrix[] |
Properties
BoundingBox
The bounding box of the world matrices, updated automatically by the InstancingProcessor.
public virtual BoundingBox BoundingBox { get; }
Property Value
Type | Description |
---|---|
BoundingBox |
InstanceCount
The instance count
public virtual int InstanceCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ModelTransformUsage
[DataMember(10)]
[Display("Model Transformation Usage", null)]
public virtual ModelTransformUsage ModelTransformUsage { get; set; }
Property Value
Type | Description |
---|---|
ModelTransformUsage |
Methods
Update()
public virtual void Update()
UpdateWorldMatrices(Matrix[], Int32)
Updates the world matrices.
public void UpdateWorldMatrices(Matrix[] matrices, int instanceCount = -1)
Parameters
Type | Name | Description |
---|---|---|
Matrix[] | matrices | The matrices. |
System.Int32 | instanceCount | The instance count. When set to -1 the length if the matrices array is used |