Class ProBuilderMenuActionAttribute | ProBuilder | 4.4.0-preview.1
docs.unity.cn
    Show / Hide Table of Contents

    Class ProBuilderMenuActionAttribute

    Classes inheriting MenuAction and tagged with this attribute will be displayed in the ProBuilderEditor window. See ProBuilder API Examples for sample code.

    Inheritance
    Object
    Attribute
    ProBuilderMenuActionAttribute
    Namespace: UnityEditor.ProBuilder
    Syntax
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class ProBuilderMenuActionAttribute : Attribute, _Attribute
    Examples
    using UnityEngine;
    using UnityEditor;
    using UnityEngine.ProBuilder;
    using UnityEditor.ProBuilder;
    using UnityEngine.ProBuilder.MeshOperations;
    
    namespace ProBuilder.ExampleActions
    {
    [ProBuilderMenuAction]
    public class MyCustomProBuilderMenuAction : MenuAction
    {
               // @todo Write your plugin
       }
    }
    

    See Also

    MenuAction
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX