Unity编辑器扩展?什么是PropertyDrawer? 自定义脚本变量绘制?

1.什么是PropertyDrawer?

原话:Base class to derive custom property drawers from. Use this to create custom drawers for your own Serializable classes or for script variables with custom PropertyAttributes.

大白话:你可以自定义自己的可以实例化的类或结构体或者自定义特性类中的变量的样式。

2.最终效果?

从这样
在这里插入图片描述
变成这样
在这里插入图片描述

3.怎么实现?

https://www.bilibili.com/video/BV1Nd4y1o7WN

猜你喜欢

转载自blog.csdn.net/qq_30163099/article/details/126295394