docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SerializedPropertyExtension

    Extensions for SerializedProperty

    Inheritance
    object
    SerializedPropertyExtension
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public static class SerializedPropertyExtension

    Methods

    Name Description
    GetEnumName<T>(SerializedProperty)

    Helper to get an enum name from a SerializedProperty

    GetEnumValue<T>(SerializedProperty)

    Helper to get an enum value from a SerializedProperty. This handle case where index do not correspond to enum value.

    GetInline<T>(SerializedProperty)

    Get the value of a SerializedProperty.

    This function will be inlined by the compiler. Caution: The case of Enum is not handled here.

    IsTargetAlive(SerializedProperty)

    Checks if the property target is alive

    SetEnumValue<T>(SerializedProperty, T)

    Helper to set an enum value to a SerializedProperty

    SetInline<T>(SerializedProperty, T)

    Set the value of a SerializedProperty.

    This function will be inlined by the compiler. Caution: The case of Enum is not handled here.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)