docs.unity.cn
    Show / Hide Table of Contents

    Constructor BakingVersionAttribute

    BakingVersionAttribute(String, Int32)

    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.

    Int32 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(Boolean)

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

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023