Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    InstancingUserArray Class

    Namespace: Stride.Engine
    Assembly: 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.

    | Improve this Doc View Source

    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[]
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation