Class AssetRole<T>
Derive this class to create a typed asset role. Typed asset roles are used to apply preprocessing steps to assets loaded from an AssetSource<T>.
Namespace: UnityEngine.Perception.Randomization
Syntax
public abstract class AssetRole<T> : object, IAssetRoleBase where T : Object
Type Parameters
Name | Description |
---|---|
T | The type of asset to preprocess |
Properties
description
Declaration
public abstract string description { get; }
Property Value
Type | Description |
---|---|
String |
label
Declaration
public abstract string label { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Preprocess(T)
Perform preprocessing operations on an asset loaded from an AssetSource<T>.
Declaration
public abstract void Preprocess(T asset)
Parameters
Type | Name | Description |
---|---|---|
T | asset | The asset to preprocess |