Class ReloadAttribute | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class ReloadAttribute

    Attribute specifying information to reload with . This is only used in the editor and doesn't have any effect at runtime.

    Inheritance
    Object
    Attribute
    ReloadAttribute
    Namespace: UnityEngine.Rendering
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public sealed class ReloadAttribute : Attribute, _Attribute

    Constructors

    ReloadAttribute(String, Int32, Int32, ReloadAttribute.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 = ReloadAttribute.Package.Root)
    Parameters
    Type Name Description
    String pathFormat

    The format used for the path

    Int32 rangeMin

    The array start index (inclusive)

    Int32 rangeMax

    The array end index (exclusive)

    ReloadAttribute.Package package

    The lookup method

    ReloadAttribute(String, ReloadAttribute.Package)

    Creates a new ReloadAttribute for a single resource.

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

    Search path

    ReloadAttribute.Package package

    The lookup method

    ReloadAttribute(String[], ReloadAttribute.Package)

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

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

    Search paths

    ReloadAttribute.Package package

    The lookup method

    See Also

    ReloadGroupAttribute
    In This Article
    • Constructors
      • ReloadAttribute(String, Int32, Int32, ReloadAttribute.Package)
      • ReloadAttribute(String, ReloadAttribute.Package)
      • ReloadAttribute(String[], ReloadAttribute.Package)
    • See Also
    Back to top
    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