Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


SerializedObjectUtils Class

Definition

C++
public ref class SerializedObjectUtils abstract sealed
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

Termék Verziók
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0