Class PackingAttribute | High Definition RP | 6.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class PackingAttribute

    Inheritance
    Object
    Attribute
    PackingAttribute
    Namespace: UnityEngine.Experimental.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
    String displayName
    FieldPacking packingScheme
    Int32 bitSize
    Int32 offsetInSource
    Single minValue
    Single maxValue
    Boolean isDirection
    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
    String[] displayName
    FieldPacking packingScheme
    Int32 bitSize
    Int32 offsetInSource
    Single minValue
    Single maxValue
    Boolean isDirection
    Boolean sRGBDisplay

    Fields

    displayNames

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

    isDirection

    Declaration
    public bool isDirection
    Field Value
    Type Description
    Boolean

    offsetInSource

    Declaration
    public int offsetInSource
    Field Value
    Type Description
    Int32

    packingScheme

    Declaration
    public FieldPacking packingScheme
    Field Value
    Type Description
    FieldPacking

    range

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

    sizeInBits

    Declaration
    public int sizeInBits
    Field Value
    Type Description
    Int32

    sRGBDisplay

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