MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SetInstance

Method SetInstance

Source/Engine/Content/JsonAsset.cs:90–95  ·  view source on GitHub ↗

Sets the instance of the asset (for both C# and C++). Doesn't save asset to the file (runtime only). The new instance.

(object instance)

Source from the content-addressed store, hash-verified

88 /// </summary>
89 /// <param name="instance">The new instance.</param>
90 public void SetInstance(object instance)
91 {
92 _instance = instance;
93 string str = instance != null ? JsonSerializer.Serialize(instance) : null;
94 Data = str;
95 }
96 }
97}

Callers 1

OnAddTagButtonClickedMethod · 0.80

Calls 1

SerializeMethod · 0.45

Tested by

no test coverage detected