docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CoreEditorUtils

    Utility class for Editor

    Inheritance
    object
    CoreEditorUtils
    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 CoreEditorUtils

    Properties

    Name Description
    buildTargets

    Build targets

    Methods

    Name Description
    AddAdditionalData<T, AdditionalT>(GameObject, Action<AdditionalT>)

    Add the appropriate AdditionalData to the given GameObject and its children containing the original component

    CheckOutFile(bool, Object)
    CreateColoredTexture2D(Color, string)

    Creates a 1x1 Texture2D with a plain Color

    CreateGameObject(string, Object)

    Creates a new GameObject and set it's position to the current view

    CreateGameObject(GameObject, string, params Type[])

    Create a game object

    DrawEnumPopup(SerializedProperty, Type, GUIContent)

    Draw an EnumPopup handling multiEdition

    DrawEnumPopup<TEnum>(Rect, GUIContent, SerializedProperty)

    Draws an EnumPopup(Rect, Enum) for the given property

    DrawFixMeBox(string, Action)

    Draw a help box with the Fix button.

    DrawFixMeBox(string, MessageType, Action)

    Draw a help box with the Fix button.

    DrawFixMeBox(string, MessageType, string, Action)

    Draw a help box with the Fix button.

    DrawFixMeBox(GUIContent, Action)

    Draw a help box with the Fix button.

    DrawFixMeBox(GUIContent, string, Action)

    Draw a help box with the Fix button.

    DrawHeader(string)

    Draw a header

    DrawHeader(GUIContent)

    Draw a header

    DrawHeaderFoldout(string, bool, bool, Func<bool>, Action, bool, string, Action<Vector2>, Action<GenericMenu>)

    Draw a foldout header

    DrawHeaderFoldout(GUIContent, bool, bool, Func<bool>, Action, bool, string, Action<Vector2>, Action<GenericMenu>)

    Draw a foldout header

    DrawHeaderToggle(string, SerializedProperty, SerializedProperty, Action<Vector2>, Func<bool>, Action, string, Action<GenericMenu>, bool, bool, bool)

    Draw a header toggle like in Volumes

    DrawHeaderToggle(GUIContent, SerializedProperty, SerializedProperty, Action<Vector2>, Func<bool>, Action, string, Action<GenericMenu>, bool, bool, bool)

    Draw a header toggle like in Volumes

    DrawHeaderToggleFoldout(GUIContent, bool, SerializedProperty, Action<Vector2>, Func<bool>, Action, string)

    Draw a header toggle like in Volumes

    DrawMultipleFields(string, SerializedProperty[], GUIContent[])

    Draw a multiple field property

    DrawMultipleFields(GUIContent, SerializedProperty[], GUIContent[])

    Draw a multiple field property

    DrawMultipleFields<T>(GUIContent, GUIContent[], T[])

    Draw a multiple field property

    DrawPopup(GUIContent, SerializedProperty, string[])

    Draw a popup

    DrawSectionHeader(GUIContent, string, Action<Vector2>, Func<bool>, Action)

    Draw a header section like in Global Settings

    DrawSplitter(bool)

    Draw a splitter separator

    DrawSubHeaderFoldout(string, bool, bool)

    Draw a foldout sub header

    DrawSubHeaderFoldout(string, bool, bool, Func<bool>, Action)

    Draw a foldout header

    DrawSubHeaderFoldout(GUIContent, bool, bool)

    Draw a foldout sub header

    DrawSubHeaderFoldout(GUIContent, bool, bool, Func<bool>, Action)

    Draw a foldout header

    DrawVector6(GUIContent, SerializedProperty, SerializedProperty, Vector3, Vector3, Color[], SerializedProperty, bool)

    Draw a Vector6 field

    FindProperty<T, TValue>(Expression<Func<T, TValue>>)

    To use with extreme caution. It not really get the property but try to find a field with similar name Hence inheritance override of property is not supported. Also variable rename will silently break the search.

    GetAdditionalData<T>(Object[], Action<T>)

    Get the AdditionalData of the given component

    GetCurrentProjectVersion()

    Parse and return current project version

    Highlight(string, string, HighlightSearchMode)

    Highlights an element in the editor for a short period of time.

    LoadIcon(string, string, string)

    Load an icon regarding skin and editor resolution. Icon should be stored as legacy icon resources:

    • "d_" prefix for Professional theme
    • "@2x" suffix for high resolution
    RemoveMaterialKeywords(Material)

    Remove the keywords on the given materials

    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)