Class PackingAttribute | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class PackingAttribute

    Inheritance
    System.Object
    System.Attribute
    PackingAttribute
    Namespace: UnityEngine.Rendering
    Syntax
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
    public class PackingAttribute : Attribute, _Attribute

    Constructors

    PackingAttribute(String, FieldPacking, Int32, Int32, Single, Single, Boolean, Boolean)

    Declaration
    public PackingAttribute(string displayName = "", FieldPacking packingScheme = FieldPacking.NoPacking, int bitSize = 0, int offsetInSource = 0, float minValue = 0F, float maxValue = 1F, bool isDirection = false, bool sRGBDisplay = false)
    Parameters
    Type Name Description
    System.String displayName
    FieldPacking packingScheme
    System.Int32 bitSize
    System.Int32 offsetInSource
    System.Single minValue
    System.Single maxValue
    System.Boolean isDirection
    System.Boolean sRGBDisplay

    PackingAttribute(String[], FieldPacking, Int32, Int32, Single, Single, Boolean, Boolean)

    Declaration
    public PackingAttribute(string[] displayName, FieldPacking packingScheme = FieldPacking.NoPacking, int bitSize = 32, int offsetInSource = 0, float minValue = 0F, float maxValue = 1F, bool isDirection = false, bool sRGBDisplay = false)
    Parameters
    Type Name Description
    System.String[] displayName
    FieldPacking packingScheme
    System.Int32 bitSize
    System.Int32 offsetInSource
    System.Single minValue
    System.Single maxValue
    System.Boolean isDirection
    System.Boolean sRGBDisplay

    Fields

    displayNames

    Declaration
    public string[] displayNames
    Field Value
    Type Description
    System.String[]

    isDirection

    Declaration
    public bool isDirection
    Field Value
    Type Description
    System.Boolean

    offsetInSource

    Declaration
    public int offsetInSource
    Field Value
    Type Description
    System.Int32

    packingScheme

    Declaration
    public FieldPacking packingScheme
    Field Value
    Type Description
    FieldPacking

    range

    Declaration
    public float[] range
    Field Value
    Type Description
    System.Single[]

    sizeInBits

    Declaration
    public int sizeInBits
    Field Value
    Type Description
    System.Int32

    sRGBDisplay

    Declaration
    public bool sRGBDisplay
    Field Value
    Type Description
    System.Boolean
    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