编辑器功能 AddComponentMenu-添加组件菜单
将脚本添加到Unity编辑器的菜单中,方便开发者在编辑器中快速添加组件。
示例
using UnityEngine;
[AddComponentMenu("添加组件/FollowTransform")]
public class FollowTransform : MonoBehaviour
{
}效果 …
https://www.w3.org/TR/xmlschema-1/#element-sequence
xml schema中的sequence的含义:包含的元素必须按规定的顺序出现。通过属性maxOccurs和minOccurs可以定义最多、最少出现的次数。最多可以定义不限制次数,最少可以定义0次。默认是最少出现1次&…