Bewerken

Delen via


SerializedObjectUtils.SetStructValue<T>(SerializedProperty, T) Method

Definition

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

public:
generic <typename T>
 where T : value class static void SetStructValue(UnityEditor::SerializedProperty ^ serializedProperty, T value);
public static void SetStructValue<T> (UnityEditor.SerializedProperty serializedProperty, T value) where T : struct;
static member SetStructValue : UnityEditor.SerializedProperty * 'T -> unit (requires 'T : struct)
Public Shared Sub SetStructValue(Of T As Structure) (serializedProperty As SerializedProperty, value As T)

Type Parameters

T

Parameters

serializedProperty
UnityEditor.SerializedProperty
value
T

Applies to