Table of Contents

Class InstancingUserArray

Namespace
Stride.Engine
Assembly
Stride.Engine.dll
[DataContract("InstancingUserArray")]
[Display("UserArray", null)]
public class InstancingUserArray : IInstancing
Inheritance
InstancingUserArray
Implements
Derived

Fields

WorldInverseMatrices

The inverse instance transformation matrices, updated automatically by the InstancingProcessor.

public Matrix[] WorldInverseMatrices

Field Value

Matrix[]

WorldMatrices

The instance transformation matrices.

public Matrix[] WorldMatrices

Field Value

Matrix[]

Properties

BoundingBox

The bounding box of the world matrices, updated automatically by the InstancingProcessor.

public virtual BoundingBox BoundingBox { get; }

Property Value

BoundingBox

InstanceCount

The instance count

public virtual int InstanceCount { get; }

Property Value

int

ModelTransformUsage

[DataMember(10)]
[Display("Model Transformation Usage", null)]
public virtual ModelTransformUsage ModelTransformUsage { get; set; }

Property Value

ModelTransformUsage

Methods

Update()

public virtual void Update()

UpdateWorldMatrices(Matrix[], int)

Updates the world matrices.

public void UpdateWorldMatrices(Matrix[] matrices, int instanceCount = -1)

Parameters

matrices Matrix[]

The matrices.

instanceCount int

The instance count. When set to -1 the length if the matrices array is used