DefaultValueMetadata<T> Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
Derived from DefaultValueMetadata<T>: DelegateDefaultValueMetadata<T> StaticDefaultValueMetadata<T>
public abstract class DefaultValueMetadata<T> : DefaultValueMetadata
Type Parameters
Name | Description |
---|---|
T |
Name | Description | |
---|---|---|
Methods | ||
GetDefaultValue(ref PropertyContainer) | ||
GetDefaultValueT(ref PropertyContainer) | Gets the default value of an external property, and specify if this default value should be kept. It could be usefull with properties with default values depending of its container, especially if they are long to generate. An example would be collision data, which should be generated only once. |
Methods
GetDefaultValue(ref PropertyContainer)
public override object GetDefaultValue(ref PropertyContainer obj)
Parameters
Type | Name | Description |
---|---|---|
PropertyContainer | obj |
Returns
Type | Description |
---|---|
System.Object |
Overrides
GetDefaultValueT(ref PropertyContainer)
Gets the default value of an external property, and specify if this default value should be kept. It could be usefull with properties with default values depending of its container, especially if they are long to generate. An example would be collision data, which should be generated only once.
public abstract T GetDefaultValueT(ref PropertyContainer obj)
Parameters
Type | Name | Description |
---|---|---|
PropertyContainer | obj | The property container. |
Returns
Type | Description |
---|---|
T | The default value. |