Method Add
Add<T>(bool)
Adds a VolumeComponent to this Volume Profile.
Declaration
public T Add<T>(bool overrides = false) where T : VolumeComponent
Parameters
| Type | Name | Description | 
|---|---|---|
| bool | overrides | Specifies whether Unity should automatically override all the settings when you add a VolumeComponent to the Volume Profile.  | 
    
Returns
| Type | Description | 
|---|---|
| T | The instance for the given type that you added to the Volume Profile  | 
    
Type Parameters
| Name | Description | 
|---|---|
| T | A type of VolumeComponent.  | 
    
Remarks
You can only have a single component of the same type per Volume Profile.
See Also
Add(Type, bool)
Adds a VolumeComponent to this Volume Profile.
Declaration
public VolumeComponent Add(Type type, bool overrides = false)
Parameters
| Type | Name | Description | 
|---|---|---|
| Type | type | A type that inherits from VolumeComponent.  | 
    
| bool | overrides | Specifies whether Unity should automatically override all the settings when you add a VolumeComponent to the Volume Profile.  | 
    
Returns
| Type | Description | 
|---|---|
| VolumeComponent | The instance created for the given type that has been added to the profile  | 
    
Remarks
You can only have a single component of the same type per Volume Profile.