简体   繁体   English

如何将数组添加到自定义检查器?

[英]How to add array to custom inspector?

How would I add a variable to a unity3d custom inspector the documentation is useless and I have tried adding serializable statement above variable and decalring it as an int field in custom inspector as the array is an integer. 我如何将变量添加到unity3d自定义检查器中,文档是没有用的,我尝试在变量上方添加可序列化的语句,并将其作为自定义检查器中的int字段进行缩放,因为该数组是整数。 I am lost if anyone knows what to do on the custom side of things please let me know. 如果有人知道该怎么做,我会迷路的,请告诉我。

Have you take a look at the official tutorials? 您看过官方教程吗?

Here, http://answers.unity3d.com/questions/210076/arrays-declaration-c.html you have an example of inspector customizing. 在这里, http://answers.unity3d.com/questions/210076/arrays-declaration-c.html提供了检查器定制的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM