Version: 5.6
public static void FromJsonOverwrite (string json, object objectToOverwrite);

参数

json 对象的 JSON 表示形式。
objectToOverwrite 要覆盖的对象。

描述

通过读取对象的 JSON 表示形式覆盖其数据。

This is similar to [JsonUtility.FromJsonOverwrite], but it supports any engine object. The fields available are the same as are accessible via the [SerializedObject] API, or as found in the YAML-serialized form of the object.