Giter Site home page Giter Site logo

unity-attributes-example's Introduction

Unity-Attributes-Example

Unity attribute 例子整理

img_1

AddComponentMenu (添加组件菜单)

addcomponentmenu

AssemblyIsEditorAssembly (引擎会把该程序集下的全部类视为编辑器类)

assemblyIseditorassembly

BeforeRenderOrder (设置Application.onBeforeRender回调函数的执行顺序)

beforerenderorder

ColorUsage (拾色器界面)

colorusage1

colorusage2

ContextMenu (为脚本添加快捷菜单)

contextmenu

ContextMenuItem (为脚本字段添加快捷菜单)

contextmenuitem

CreateAssetMenu (添加ScriptableObject的创建菜单)

createassetmenu

CustomGridBrush (自定义笔刷)

customgridbrush

Delayed (延迟设置字段的值)

delayed

DisallowMultipleComponent (不允许多次挂载同一个脚本到同一个物体上)

disallowmultiplecomponent

ExcludeFromObjectFactory

ExcludeFromPreset

ExecuteAlways

ExecuteInEditMode

GradientUsage

GUITarget

Header

HelpURL

HideInInspector

Multiline

PreferBinarySerialization

Range

RequireComponent

RuntimeInitializeOnLoadMethod - 回调函数(程序启动时)

SelectionBase

SerializeField

SharedBetweenAnimators

Space

TextArea

Tooltip - 提示(Inspector面板->鼠标停留在脚本的属性上)

UnityAPICompatibilityVersion

FormerlySerializedAs

CanEditMultipleObjects

CustomPreview

CustomPropertyDrawer

DrawGizmo

InitializeOnLoad - 该类在Unity引擎打开时会被创建

InitializeOnLoadMethod - 回调函数(打开Unity引擎后)

OnOpenAsset - 打开资源时(Asset面板->双击选中的文件)

PostProcessBuild - 回调函数(每次发布程序后)

PostProcessScene - 回调函数(每次进入场景前)

GridPaintSorting(the sorting of Active Targets in the Active Tilemap list of the Tile Palette window)

gridpaintsorting1

gridpaintsorting2

gridpaintsorting3

MenuItem

SettingsProvider

unity-attributes-example's People

Contributors

lastassertor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.