用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:attributes:createassetmenuattribute:createassetmenuattribute

创建脚本化对象的一种方式,点击assets > create在第一行就可以看到My name菜单。

[CreateAssetMenu(menuName = "My Name")]
 public class ItemReference : ScriptableObject
 {
     [SerializeField, Multiline]
     private string description;
     [SerializeField, Range(0, 64)]
     private int stackSize;
 }
script/unityengine/attributes/createassetmenuattribute/createassetmenuattribute.txt · 最后更改: 2016/11/11 06:00 由 xokms