EarlyUpdate
Player loop phase that processes input, loading, streaming, and other engine housekeeping before physics and scripts update.
Read time 5 minutesLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.PlayerLoop
- Assembly: UnityEngine.CoreModule
public struct EarlyUpdate
Remarks
EarlyUpdateInitializationFixedUpdateOnBecameInvisibleThis struct identifies a phase of the Player loop. It has no members. In the default Player loop, the for this phase contains a PlayerLoopSystem.subSystemList of native engine systems, each identified by one of the structs nested in this type.
PlayerLoopSystemUse 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.
For more information, refer to Customizing the Player loop and Event function execution order.
Structs
Struct | Description |
|---|---|
| EarlyUpdate.AnalyticsCoreStatsUpdate | Native Player loop system that updates the core statistics that Unity Analytics collects. |
| EarlyUpdate.ClearIntermediateRenderers | Native Player loop system that clears meshes drawn with Graphics.DrawMesh and similar methods at the start of the frame in the Editor. |
| EarlyUpdate.ClearLines | Native Player loop system that clears debug lines drawn with Debug.DrawLine and Debug.DrawRay once they expire. |
| EarlyUpdate.DeliverIosPlatformEvents | Player loop system for delivering iOS platform events that's part of the default Player loop but performs no work. |
| EarlyUpdate.DispatchEventQueueEvents | Native Player loop system that dispatches events from the global event queue, which native plug-ins can use to communicate with the engine and with each other. |
| EarlyUpdate.ExecuteMainThreadJobs | Native Player loop system that runs engine background tasks that must complete on the main thread. |
| EarlyUpdate.GpuTimestamp | Native Player loop system that records the initial GPU timestamp for the frame, which GPU profiling uses. |
| EarlyUpdate.InsightsUpdate | Native Player loop system that collects and sends diagnostic data about the application's sessions and runtime behavior. |
| EarlyUpdate.PerformanceAnalyticsUpdate | Native Player loop system that measures frame times for performance reporting. |
| EarlyUpdate.Physics2DEarlyUpdate | Native Player loop system that resets 2D physics profiling statistics at the start of the frame. |
| EarlyUpdate.PhysicsCore2DEarlyUpdate | Native Player loop system that performs the early-frame update for the low-level 2D physics API in the Unity.U2D.Physics namespace. |
| EarlyUpdate.PhysicsResetInterpolatedTransformPosition | Native Player loop system that resets interpolated Rigidbody Transforms to their simulated positions before the frame's physics updates. |
| EarlyUpdate.PlayerCleanupCachedData | Native Player loop system that releases unused cached rendering buffers and text rendering data. |
| EarlyUpdate.PollHtcsPlayerConnection | Player loop system for polling player connections that isn't part of the default Player loop. |
| EarlyUpdate.PollPlayerConnection | Native Player loop system that processes messages between the Editor and connected Players, such as Profiler and Console data. |
| EarlyUpdate.PresentBeforeUpdate | Native Player loop system that presents the previous frame at the start of the frame, on platforms that present before the update. |
| EarlyUpdate.ProcessMouseInWindow | Native Player loop system that updates whether the mouse cursor is inside the application window. |
| EarlyUpdate.ProcessRemoteInput | Native Player loop system that processes input from the Unity Remote app. |
| EarlyUpdate.RendererNotifyInvisible | Native Player loop system that sends OnBecameInvisible messages to scripts on renderers that are no longer visible to any camera. |
| EarlyUpdate.ResetFrameStatsAfterPresent | Native Player loop system that records the number of Animator components that played in the previous frame, and resets the count for the new frame. |
| EarlyUpdate.ScriptRunDelayedStartupFrame | Native Player loop system that calls MonoBehaviour.Start on scripts that haven't started yet, such as scripts in newly loaded scenes. |
| EarlyUpdate.SpriteAtlasManagerUpdate | Native Player loop system that cleans up invalid sprite atlases and requests late-binding sprite atlases from scripts. |
| EarlyUpdate.TilemapRendererEarlyUpdate | Native Player loop system that releases render data for Tilemap Renderer chunks that are no longer used. |
| EarlyUpdate.UnityWebRequestUpdate | Native Player loop system that invokes main-thread script callbacks for in-progress UnityWebRequest operations. |
| EarlyUpdate.UpdateAsyncInstantiate | Native Player loop system that advances asynchronous instantiation operations, such as those started with Object.InstantiateAsync. |
| EarlyUpdate.UpdateAsyncReadbackManager | Native Player loop system that checks pending asynchronous GPU readback requests and invokes callbacks for completed requests. |
| EarlyUpdate.UpdateCanvasRectTransform | Native Player loop system that updates the RectTransform of each Canvas to match its screen or camera before scripts update. |
| EarlyUpdate.UpdateContentLoading | Native Player loop system that advances content file loading operations, such as those started with the ContentLoadManager API. |
| EarlyUpdate.UpdateInputManager | Native Player loop system that reads the current state of input devices into the legacy Input Manager. |
| EarlyUpdate.UpdateKinect | Player loop system for Kinect sensor updates that's part of the default Player loop but performs no work. |
| EarlyUpdate.UpdateMainGameViewRect | Native Player loop system that updates the screen size to match the main Game view. |
| EarlyUpdate.UpdatePreloading | Native Player loop system that integrates asynchronously loaded scenes and assets, such as those loaded with SceneManager.LoadSceneAsync. |
| EarlyUpdate.UpdateStreamingManager | Native Player loop system that passes the cameras that mipmap streaming uses to calculate mipmap levels, such as cameras with active Streaming Controller components, to the mipmap streaming system. |
| EarlyUpdate.UpdateTextureStreamingManager | Native Player loop system that updates mipmap streaming and decides which texture mipmap levels to load. |
| EarlyUpdate.XRUpdate | Native Player loop system that updates XR input and tracking data before scripts update. |