docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor BakingVersionAttribute

    BakingVersionAttribute(string, int)

    Initializes and returns an instance of BakingVersionAttribute

    Declaration
    public BakingVersionAttribute(string userName, int version)
    Parameters
    Type Name Description
    string userName

    An identifier for the user that made the last change. Use this to enforce a merge conflict when two different users both try to bump the version at the same time.

    int version

    The version number of the converter. Increase this to invalidate the cached versions of entity scenes that use the converter that is tagged with this attribute.

    BakingVersionAttribute(bool)

    Initializes and returns an instance of BakingVersionAttribute that is excluded from changing the Baking behaviour for an assembly.

    Declaration
    public BakingVersionAttribute(bool excluded)
    Parameters
    Type Name Description
    bool excluded

    Whether or not the Baker or Baking System is excluded from impacting the behaviour of the assembly. This means it does not contribute to an assembly causing re-bakes when changed, but also will not emit warnings if the assembly does use BakingVersion on other Bakers. With this constructor, only true is valid.

    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)