Class FoliageInstance
Foliage instanced mesh instance. Packed data with very little of logic. Managed by the foliage chunks and foliage actor itself.
Inheritance
System.Object
FoliageInstance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class FoliageInstance : ValueType
Fields
Bounds
The cached instance bounds (in world space).
Declaration
public BoundingSphere Bounds
Field Value
BoundingSphere
|
Random
The per-instance random value from range [0;1].
Declaration
public float Random
Field Value
System.Single
|
Transform
The local-space transformation of the mesh relative to the foliage actor.
Declaration
public Transform Transform
Field Value
Transform
|
Type
The foliage type index. Foliage types are hold in foliage actor and shared by instances using the same model.
Declaration
public int Type
Field Value
System.Int32
|
Properties
Default
The default FoliageInstance.
Declaration
public static FoliageInstance Default { get; }
Property Value
FoliageInstance
|