[Rang(0.1f,2f)] public float size = 1f;
float类型的变量可以再Inspector面板中设置成滑块的样式
[header("Transform")] public vector3 position; public vector3 rotation;
给Inspector面板的属性分组并添加标题
[Rang(0.1f,2f)] public float size = 1f;
float类型的变量可以再Inspector面板中设置成滑块的样式
[header("Transform")] public vector3 position; public vector3 rotation;
给Inspector面板的属性分组并添加标题