Editar

Partilhar via


SerializedObjectUtils Class

Definition

public ref class SerializedObjectUtils abstract sealed
public static class SerializedObjectUtils
type SerializedObjectUtils = class
Public Class SerializedObjectUtils
Inheritance
SerializedObjectUtils

Methods

CopySerializedObject(SerializedObject, SerializedObject, IEnumerable<String>)

Copies properties of one serialized object to another (without undo)

CopySerializedObjectToStruct<T>(SerializedObject, T, String, Boolean)

Iterates through a serialized object's fields and sets any accompanying fields in the supplied struct.

SetSerializedPropertyByType(Object, SerializedProperty)

Sets a serialized property value based on type of value object.

SetStructValue<T>(SerializedProperty, T)

Uses reflection to set all public fields of a struct in an accompanying serialized property

SetTargetFieldToSerializedPropertyValue(FieldInfo, Object, SerializedProperty)

Sets the target field to the value from property based on property type.

Applies to