◆ SetValueViaPath()

static void SetValueViaPath ( this object  rootObject,
string  path,
object  ValueToAssign 
)
static
Parameters
rootObjectobject that contains the field whose value will be assigned.
pathUnity SerialiazatbleProperty path of the field to assign the value to.
ValueToAssignThe value that will be assigned to the field. Passing an incorrect type of value will raise an exception.