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)
| 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 | } |
no test coverage detected