Method CreateVolumeComponent
CreateVolumeComponent<T>(VolumeProfile, bool, bool)
Creates a VolumeComponent in an existing VolumeProfile.
Declaration
public static T CreateVolumeComponent<T>(VolumeProfile profile, bool overrides = false, bool saveAsset = true) where T : VolumeComponent
Parameters
Type | Name | Description |
---|---|---|
VolumeProfile | profile | The profile to store the new component in. |
bool | overrides | specifies whether to override the parameters in the component or not. |
bool | saveAsset | Specifies whether to save the Profile Asset or not. This is useful when you need to create several components in a row and only want to save the Profile Asset after adding the last one, because saving Assets to disk can be slow. |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | A type of VolumeComponent. |