docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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>.

    Inheritance
    object
    AssetRole<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)