Interface IFilter
IFilter is an interface to create custom filter condition.
Namespace: UnityEngine.AssetGraph
Syntax
public interface IFilter
Properties
Label
Label string for the filter. Label string will be displayed in output point and outgoing connection.
Declaration
string Label { get; }
Property Value
Type | Description |
---|---|
String | The label string. |
Methods
FilterAsset(AssetReference)
Filters the asset.
Declaration
bool FilterAsset(AssetReference asset)
Parameters
Type | Name | Description |
---|---|---|
AssetReference | asset | Asset. |
Returns
Type | Description |
---|---|
Boolean |
|
OnInspectorGUI(Rect, Action)
Draw Inspector GUI for this Filter.
Make sure to call onValueChanged
() when inspector values are modified.
It will save state of AssetGenerator object.
Declaration
void OnInspectorGUI(Rect rect, Action onValueChanged)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | |
Action | onValueChanged | Action to call when inspector value changed. |