当前位置:   article > 正文

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

unity propertydrawer dll

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/106529?site
推荐阅读
相关标签
  

闽ICP备14008679号