Interface IUnityObjectReferenceValueProperty<TContainer>
Provides access to unity object properties
Namespace: Unity.RuntimeSceneSerialization
Syntax
public interface IUnityObjectReferenceValueProperty<TContainer>
Type Parameters
Name | Description |
---|---|
TContainer |
Properties
OriginalValueType
The original type of UnityObject, which is hidden by UnityObjectReference
Declaration
Type OriginalValueType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
GetMemberValue(ref TContainer)
Get the value directly without going through UnityObjectReference
Declaration
UnityEngine.Object GetMemberValue(ref TContainer container)
Parameters
Type | Name | Description |
---|---|---|
TContainer | container | The container object on from which the property will be accessed |
Returns
Type | Description |
---|---|
UnityEngine.Object | The property value |
SetMemberValue(ref TContainer, UnityEngine.Object)
Set the value directly without going through UnityObjectReference
Declaration
void SetMemberValue(ref TContainer container, UnityEngine.Object value)
Parameters
Type | Name | Description |
---|---|---|
TContainer | container | The container object on which the property will be set |
UnityEngine.Object | value | The value to set |