Hello,
I want make a @property which is an array of ( name: string, and prefab: Prefab )
How to declare it inside Component to enable config it in Inspector of Editor ?
Thank you!
Hello,
I want make a @property which is an array of ( name: string, and prefab: Prefab )
How to declare it inside Component to enable config it in Inspector of Editor ?
Thank you!
It’s actually introduced here
https://docs.cocos.com/creator/manual/en/scripting/decorator.html#type-attribute
@pandamicro : can I create group list items like this:
Shape Configs:
0: name:
prefab:
1: name:
prefab:
Can you give me some demo code ?
Thank you in advance!
Thank @pandamicro ,
That is what I need!