Struct MeshLODGroupComponent
Represents an LOD group.
Implements
IComponentData
IQueryTypeParameter
Namespace: Unity.Rendering
Assembly: Unity.Entities.Graphics.dll
Syntax
public struct MeshLODGroupComponent : IComponentData, IQueryTypeParameter
Remarks
Each MeshLODGroupComponent contains multiple MeshLODComponents and can also have multiple child groups.
Fields
LODDistances0
The LOD distances for the four closest LODS.
Declaration
public float4 LODDistances0
Field Value
Type | Description |
---|---|
float4 |
LODDistances1
The LOD distances for the four furthest LODS.
Declaration
public float4 LODDistances1
Field Value
Type | Description |
---|---|
float4 |
LocalReferencePoint
The local reference point which Entities Graphics uses to calculate the distance from the camera to the LOD group.
Declaration
public float3 LocalReferencePoint
Field Value
Type | Description |
---|---|
float3 |
ParentGroup
The LOD parent group.
Declaration
public Entity ParentGroup
Field Value
Type | Description |
---|---|
Entity |
ParentMask
The LOD mask.
Declaration
public int ParentMask
Field Value
Type | Description |
---|---|
int |
Remarks
Each bit matches with one of the 8 possible LOD levels.
Implements
Unity.Entities.IComponentData
Unity.Entities.IQueryTypeParameter