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>.
Inherited Members
Namespace: UnityEngine.Perception.Randomization
Assembly: Unity.Perception.Runtime.dll
Syntax
public abstract class AssetRole<T> where T : Object
Type Parameters
| Name | Description |
|---|---|
| T | The type of asset to preprocess |
Properties
description
A description for this asset role
Declaration
public abstract string description { get; }
Property Value
| Type | Description |
|---|---|
| string |
label
The string label uniquely associated with this asset role
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 |