Documentation

Unity Engine

Unity Engine

Initialization

Player loop phase that prepares profiling, rendering, and synchronization state for the new frame before other updates run.
Read time 2 minutesLast updated 5 days ago

Definition

public struct Initialization

Remarks

Initialization
runs after
TimeUpdate
. Systems in this phase start the Profiler frame, store data for motion vector rendering, sample time for PlayableDirector components, upload asynchronously loaded data to the GPU, synchronize cluster rendering nodes, and run the early XR update.
This struct identifies a phase of the Player loop. It has no members. In the default Player loop, the
PlayerLoopSystem
for this phase contains a PlayerLoopSystem.subSystemList of native engine systems, each identified by one of the structs nested in this type.
Use this type with PlayerLoopSystem.type to find the phase when you add your own systems to it, or when you reorder, replace, or remove the systems it contains. If you remove or replace a native system, Unity no longer performs that system's work, so the related engine feature might stop working. Some native systems are active only in the Editor, only in Players, or only on platforms and configurations that support the related feature. Elsewhere, those systems remain in the Player loop but don't do anything.

Structs

Struct

Description

Initialization.AsyncUploadTimeSlicedUpdateNative Player loop system that uploads asynchronously loaded texture and mesh data to the GPU in time-sliced steps.
Initialization.DirectorSampleTimeNative Player loop system that samples the current time for PlayableDirector and PlayableGraph.
Initialization.ProfilerStartFrameNative Player loop system that starts a new Profiler frame and begins recording frame statistics.
Initialization.SynchronizeInputsNative Player loop system that synchronizes input across the nodes of a cluster rendering setup.
Initialization.SynchronizeStateNative Player loop system that synchronizes frame state across the nodes of a cluster rendering setup.
Initialization.UpdateCameraMotionVectorsNative Player loop system that stores each camera's previous view-projection matrix and starts a new frame for motion vector tracking.
Initialization.XREarlyUpdateNative Player loop system that performs the early-frame update for XR, before most other systems in the frame run.