Struct GhostDebugMeshBounds
Self contained component to hold a mesh's bounds for debug drawing.
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public struct GhostDebugMeshBounds : IComponentData, IQueryTypeParameter
Remarks
This should stay active even when the GameObject is inactive. This is really showing boxes for the netcode of your GameObject, which is linked to the entity lifecycle If the entity is still moving and your GO is inactive, you'd potentially still want to know about it.
Fields
GlobalBounds
The bounds for this entity, used to draw a debug box. Should be in local space, with the center at the object's origin.
Declaration
public Bounds GlobalBounds
Field Value
Type | Description |
---|---|
Bounds |
Methods
Initialize(GameObject, Entity, World)
Convenience method to initialize the debug mesh bounds for GameObjects.
Declaration
public GhostDebugMeshBounds Initialize(GameObject gameObject, Entity entity, World world)
Parameters
Type | Name | Description |
---|---|---|
Game |
gameObject | GameObject with debug mesh |
Entity | entity | Entity represenation of gameobject |
World | world | World containing entity |
Returns
Type | Description |
---|---|
Ghost |
Returns a mesh's bounds for debug drawing. |