Class GhostPresentationGameObjectEntityOwner
If this component is added to a GameObject used as a GhostPresentationGameObjectPrefabReference it will be setup with references to the entity and world owning this GameObject instance.
Inherited Members
Namespace: Unity.NetCode .Hybrid
Assembly: Unity.NetCode.Hybrid.dll
Syntax
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.netcode@latest/index.html?subfolder=/api/Unity.NetCode.Hybrid.GhostPresentationGameObjectEntityOwner.html")]
public class GhostPresentationGameObjectEntityOwner : MonoBehaviour
Properties
Entity
The entity owning this GameObject.
Declaration
public Entity Entity { get; }
Property Value
Type | Description |
---|---|
Entity |
World
The world in which the entity owning this GameObject exists.
Declaration
public World World { get; }
Property Value
Type | Description |
---|---|
World |
Methods
Initialize(Entity, World)
Convenience method to initialize the debug mesh bounds.
Declaration
public void Initialize(Entity entity, World world)