docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MediaContentDrawer

    Property Drawer for MediaContent properties

    Inheritance
    object
    GUIDrawer
    PropertyDrawer
    MediaContentDrawer
    Inherited Members
    PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent)
    PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent)
    PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)
    PropertyDrawer.attribute
    PropertyDrawer.fieldInfo
    PropertyDrawer.preferredLabel
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Tutorials.Editor
    Assembly: Unity.Tutorials.Editor.dll
    Syntax
    [CustomPropertyDrawer(typeof(MediaContent))]
    public class MediaContentDrawer : PropertyDrawer

    Methods

    CreatePropertyGUI(SerializedProperty)

    Create the UIElement for the given SerializedProperty

    Declaration
    public override VisualElement CreatePropertyGUI(SerializedProperty property)
    Parameters
    Type Name Description
    SerializedProperty property

    The SerializedProperty for which to create the elements

    Returns
    Type Description
    VisualElement

    The root of the UIElements hierarchy created

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