Class RemoveAdditionalDataUtils
Utilities to remove UnityEngine.MonoBehaviour implementing IAdditionalData
Namespace: UnityEditor.Rendering
Syntax
public static class RemoveAdditionalDataUtils
Methods
RemoveAdditionalData(MenuCommand, Boolean)
Removes a IAdditionalData and it's components defined by UnityEngine.RequireComponent
Declaration
public static void RemoveAdditionalData(MenuCommand command, bool promptDisplay = true)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEditor.MenuCommand | command | The command that is executing the removal |
| Boolean | promptDisplay | If the command must prompt a display to get user confirmation |
Exceptions
| Type | Condition |
|---|---|
| Exception | If the given UnityEngine.MonoBehaviour is not an IAdditionalData |