随笔分类 -  unity,C#

摘要:NGUI没设置hideInput 但是又看不见输入内容解决办法:修改编译的xcode工程里的 keyboard.mm 文件里的positionInput 方法257行textField.frame = CGRectMake(textField.frame.origin.x, textField.fr... 阅读全文
posted @ 2015-09-12 14:38 reuyui 阅读(344) 评论(0) 推荐(0)
摘要:小写的object是泛类, 引用的是System.Object.大写的Object引用的是UnityEngine.Object.UnityEngine.Object继承System.Object.需要注意的是重载的运算符.System.Objecta=newSystem.Object();Unity... 阅读全文
posted @ 2014-08-18 16:54 reuyui 阅读(1238) 评论(1) 推荐(0)
摘要:unity3d的对象有field, property.一般要取得类的某个属性时,要使用GetType().GetField(xxx);许多教程都写用property.(坑)property 感觉是运行时的属性.(not sure!)ex:有个类xxxpublic class xxx{ public... 阅读全文
posted @ 2014-07-24 16:04 reuyui 阅读(4561) 评论(1) 推荐(0)