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.MemberwiseClone()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
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)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<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")]
[AddComponentMenu("Multiplayer/Ghost Presentation GameObject Entity Owner", 101)]
[MovedFrom(true, "Unity.NetCode.Hybrid", null, null)]
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 NetcodeWorld World { get; }
Property Value
| Type | Description |
|---|---|
| NetcodeWorld |
Methods
Initialize(Entity, NetcodeWorld)
Convenience method to initialize the debug mesh bounds.
Declaration
public void Initialize(Entity entity, NetcodeWorld world)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity owning this GameObject. |
| NetcodeWorld | world | The world in which the entity owning this GameObject exists. |