Interface IModifier
IModifier is an interface which modifies incoming assets.
Subclass of IModifier must have CustomModifier
attribute.
Namespace: UnityEngine.AssetGraph
Syntax
public interface IModifier
Methods
IsModified(Object[], List<AssetReference>)
Test if incoming assset is different from this IModifier's setting.
Declaration
bool IsModified(Object[] assets, List<AssetReference> group)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Object[] | assets | Assets. |
List<AssetReference> | group |
Returns
Type | Description |
---|---|
Boolean |
|
Modify(Object[], List<AssetReference>)
Modify incoming assets.
Declaration
void Modify(Object[] assets, List<AssetReference> group)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Object[] | assets | Assets. |
List<AssetReference> | group |
OnInspectorGUI(Action)
Draw Inspector GUI for this Modifier.
Declaration
void OnInspectorGUI(Action onValueChanged)
Parameters
Type | Name | Description |
---|---|---|
Action | onValueChanged | On value changed. |
OnValidate()
Called when validating this prefabBuilder. NodeException should be thrown if this modifier is not ready to be used for building.
Declaration
void OnValidate()