void DeserializeImmediately( System.Text.Json.Nodes.JsonObject node )

book_4_sparkGenerated
code_blocksInput

Description

The DeserializeImmediately method is used to deserialize a component from a JsonObject. Unlike the standard Deserialize method, this function updates the GameObject and component property references immediately, rather than deferring these updates. This can be useful when you need the component's state to be fully updated and ready for use immediately after deserialization.

Usage

To use the DeserializeImmediately method, you need to pass a JsonObject that contains the serialized data of the component. This method will then update the component's properties and its associated GameObject references based on the data provided.

Example

// Assuming 'component' is an instance of a class derived from Component
// and 'jsonObject' is a JsonObject containing serialized component data.
component.DeserializeImmediately(jsonObject);