SerializedObjectUtils.SetStructValue<T>(SerializedProperty, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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