docs.unity3d.com
    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>
    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

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023