docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor ReloadAttribute

    ReloadAttribute(string[], Package)

    Creates a new ReloadAttribute for an array by specifying each resource path individually.

    Declaration
    public ReloadAttribute(string[] paths, ReloadAttribute.Package package = Package.Root)
    Parameters
    Type Name Description
    string[] paths

    Search paths

    ReloadAttribute.Package package

    The lookup method

    ReloadAttribute(string, Package)

    Creates a new ReloadAttribute for a single resource.

    Declaration
    public ReloadAttribute(string path, ReloadAttribute.Package package = Package.Root)
    Parameters
    Type Name Description
    string path

    Search path

    ReloadAttribute.Package package

    The lookup method

    ReloadAttribute(string, int, int, Package)

    Creates a new ReloadAttribute for an array using automatic path name numbering.

    Declaration
    public ReloadAttribute(string pathFormat, int rangeMin, int rangeMax, ReloadAttribute.Package package = Package.Root)
    Parameters
    Type Name Description
    string pathFormat

    The format used for the path

    int rangeMin

    The array start index (inclusive)

    int rangeMax

    The array end index (exclusive)

    ReloadAttribute.Package package

    The lookup method

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