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
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity owning this GameObject. |
World | world | The world in which the entity owning this GameObject exists. |