docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostSpawnSystem

    Inheritance
    Object
    ComponentSystemBase
    SystemBase
    GhostSpawnSystem
    Inherited Members
    SystemBase.CompleteDependency()
    SystemBase.Update()
    SystemBase.GetComponent<T>(Entity)
    SystemBase.SetComponent<T>(Entity, T)
    SystemBase.HasComponent<T>(Entity)
    SystemBase.GetComponentDataFromEntity<T>(Boolean)
    SystemBase.GetBuffer<T>(Entity, Boolean)
    SystemBase.GetBufferFromEntity<T>(Boolean)
    SystemBase.GetStorageInfoFromEntity()
    Unity.Entities.SystemBase.UnmanagedUpdate$BurstManaged(System.IntPtr, Unity.Entities.SystemDependencySafetyUtility.SafetyErrorDetails)
    SystemBase.Dependency
    SystemBase.Entities
    SystemBase.Job
    ComponentSystemBase.OnCreateForCompiler()
    ComponentSystemBase.OnStartRunning()
    ComponentSystemBase.OnStopRunning()
    ComponentSystemBase.ShouldRunSystem()
    ComponentSystemBase.GetComponentTypeHandle<T>(Boolean)
    ComponentSystemBase.GetDynamicComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetBufferTypeHandle<T>(Boolean)
    ComponentSystemBase.GetSharedComponentTypeHandle<T>()
    ComponentSystemBase.GetDynamicSharedComponentTypeHandle(ComponentType)
    ComponentSystemBase.GetEntityTypeHandle()
    ComponentSystemBase.RequireForUpdate(EntityQuery)
    ComponentSystemBase.RequireSingletonForUpdate<T>()
    ComponentSystemBase.HasSingleton<T>()
    ComponentSystemBase.GetSingleton<T>()
    ComponentSystemBase.TryGetSingleton<T>(T)
    ComponentSystemBase.SetSingleton<T>(T)
    ComponentSystemBase.GetSingletonEntity<T>()
    ComponentSystemBase.TryGetSingletonEntity<T>(Entity)
    ComponentSystemBase.GetEntityQuery(ComponentType[])
    ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
    ComponentSystemBase.GetEntityQuery(EntityQueryDesc[])
    ComponentSystemBase.GetEntityQuery(EntityQueryDescBuilder)
    ComponentSystemBase.Enabled
    ComponentSystemBase.EntityQueries
    ComponentSystemBase.GlobalSystemVersion
    ComponentSystemBase.LastSystemVersion
    ComponentSystemBase.EntityManager
    ComponentSystemBase.World
    ComponentSystemBase.SystemHandleUntyped
    ComponentSystemBase.Time
    Namespace: Unity.NetCode
    Syntax
    [UpdateInGroup(typeof(GhostSpawnSystemGroup))]
    public class GhostSpawnSystem : SystemBase

    Methods

    ConvertGhostToInterpolated(Entity, Single)

    Convert a predicted ghost to an interpolated ghost. The ghost must support both interpolated and predicted mode, and it cannot be owner predicted. The new components added as a result of this operation will have the inital values from the ghost prefab.

    Declaration
    public bool ConvertGhostToInterpolated(Entity entity, float transitionDuration = 0F)
    Parameters
    Type Name Description
    Entity entity
    Single transitionDuration
    Returns
    Type Description
    Boolean

    ConvertGhostToPredicted(Entity, Single)

    Convert an interpolated ghost to a predicted ghost. The ghost must support both interpolated and predicted mode, and it cannot be owner predicted. The new components added as a result of this operation will have the inital values from the ghost prefab.

    Declaration
    public bool ConvertGhostToPredicted(Entity entity, float transitionDuration = 0F)
    Parameters
    Type Name Description
    Entity entity
    Single transitionDuration
    Returns
    Type Description
    Boolean

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    ComponentSystemBase.OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    ComponentSystemBase.OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Overrides
    SystemBase.OnUpdate()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023