GetOrdValue

来源:互联网 发布:lua编程入门 编辑:程序博客网 时间:2024/06/07 01:57

Returns the property value of the first object currently being edited.

Call GetOrdValue to obtain the current value of the property for the first object in the internal list of objects being edited. Call GetOrdValue only if the property is an ordinal type.

返回当前正在编辑的第一对象的属性值。
调用GetOrdValue获得正在编辑的对象列表第一个对象的属性的值。只有当属性是一个序数类型的时候才能调用GetOrdValue。

If more than one object is currently being edited, GetOrdValue returns the value for the object returned by GetComponent(0). To obtain the current property value for every object currently being edited, use the GetOrdValueAt method.

如果当前编辑的对象不止一个,那么GetOrdValue将是GetComponent(0)(第一个组件)返回的对象的的值。获取当前正在编辑当前的每一个对象的属性值,使用GetOrdValueAt方法。

0 0