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

    Class HDEditorUtils

    Inheritance
    Object
    HDEditorUtils
    Namespace: UnityEditor.Experimental.Rendering.HDPipeline
    Syntax
    public class HDEditorUtils

    Methods

    CopyFileWithRetryOnUnauthorizedAccess(String, String)

    Declaration
    public static bool CopyFileWithRetryOnUnauthorizedAccess(string s, string path)
    Parameters
    Type Name Description
    String s
    String path
    Returns
    Type Description
    Boolean

    DrawSectionFoldout(String, Boolean)

    Declaration
    public static bool DrawSectionFoldout(string title, bool isExpanded)
    Parameters
    Type Name Description
    String title
    Boolean isExpanded
    Returns
    Type Description
    Boolean

    FlagToggle<TEnum>(TEnum, SerializedProperty)

    Declaration
    public static bool FlagToggle<TEnum>(TEnum v, SerializedProperty property)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    TEnum v
    SerializedProperty property
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    TEnum

    GetBaseShaderPreprocessorList()

    Declaration
    public static List<BaseShaderPreprocessor> GetBaseShaderPreprocessorList()
    Returns
    Type Description
    List<BaseShaderPreprocessor>

    HumanizeWeight(Int64)

    Give a human readable string representing the inputed weight given in byte.

    Declaration
    public static string HumanizeWeight(long weightInByte)
    Parameters
    Type Name Description
    Int64 weightInByte
    Returns
    Type Description
    String

    IsAssetPath(String)

    Declaration
    public static bool IsAssetPath(string path)
    Parameters
    Type Name Description
    String path
    Returns
    Type Description
    Boolean

    LightLayerMaskPropertyDrawer(GUIContent, SerializedProperty)

    Provide a specific property drawer for LightLayer

    Declaration
    public static void LightLayerMaskPropertyDrawer(GUIContent label, SerializedProperty property)
    Parameters
    Type Name Description
    GUIContent label

    The desired label

    SerializedProperty property

    The SerializedProperty (representing an int that should be displayed as a LightLayer)

    LightLayerMaskPropertyDrawer(Rect, SerializedProperty)

    Provide a specific property drawer for LightLayer (without label)

    Declaration
    public static void LightLayerMaskPropertyDrawer(Rect rect, SerializedProperty property)
    Parameters
    Type Name Description
    Rect rect

    The rect where to draw

    SerializedProperty property

    The SerializedProperty (representing an int that should be displayed as a LightLayer)

    LoadAsset<T>(String)

    Declaration
    public static T LoadAsset<T>(string relativePath)
        where T : Object
    Parameters
    Type Name Description
    String relativePath
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    PropertyFieldWithFlagToggleIfDisplayed<TEnum>(TEnum, SerializedProperty, GUIContent, SerializedProperty, TEnum, TEnum, Action<SerializedProperty, GUIContent>)

    Declaration
    public static void PropertyFieldWithFlagToggleIfDisplayed<TEnum>(TEnum v, SerializedProperty property, GUIContent label, SerializedProperty override, TEnum displayed, TEnum overrideable, Action<SerializedProperty, GUIContent> drawer = null)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    TEnum v
    SerializedProperty property
    GUIContent label
    SerializedProperty override
    TEnum displayed
    TEnum overrideable
    Action<SerializedProperty, GUIContent> drawer
    Type Parameters
    Name Description
    TEnum

    PropertyFieldWithOptionalFlagToggle<TEnum>(TEnum, SerializedProperty, GUIContent, SerializedProperty, Boolean, Action<SerializedProperty, GUIContent>)

    Declaration
    public static void PropertyFieldWithOptionalFlagToggle<TEnum>(TEnum v, SerializedProperty property, GUIContent label, SerializedProperty override, bool showOverrideButton, Action<SerializedProperty, GUIContent> drawer = null)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    TEnum v
    SerializedProperty property
    GUIContent label
    SerializedProperty override
    Boolean showOverrideButton
    Action<SerializedProperty, GUIContent> drawer
    Type Parameters
    Name Description
    TEnum

    ReserveAndGetFlagToggleRect()

    Declaration
    public static Rect ReserveAndGetFlagToggleRect()
    Returns
    Type Description
    Rect

    ResetMaterialKeywords(Material)

    Declaration
    public static bool ResetMaterialKeywords(Material material)
    Parameters
    Type Name Description
    Material material
    Returns
    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