This tutorial will help you understand how to write and build your own decorators for the Cocos Creator editor, so you can edit all your nodes, sprites, text, color, coordinates, numbers, and more in the editor, without needing to refer back to the code. Great for helping non-developers on your team and for common uses in Cocos Creator.
Though this tutorial is long, you can skip to the type of decorator you want to build by clicking on the timestamp below:
00:00 Introduction
00:52 Getting Started
01:55 Common objects (Nodes, Sprite Frame, Other components)
03:18 Integers (including step call)
04:49 Floats (including min and max call)
05:47 Sliders
06:39 Strings
07:36 2D vectors
08:42 3D vectors and quaternions
09:15 Colors
10:15 Arrays
11:12 Dropdown box (enums)
13:21 Checkbox
14:14 Hide decorators (visible and displayName call)
15:55 Groupings (tabs and multiple groups)
18:33 disallowMultiple and help link
Learn more about Decorators from our Cocos Creator documentation:
https://docs.cocos.com/creator/manual...