unity3D技术之gui.selectiongrid 选择网格
unity3D技术
static functionselectiongrid(position:rect,selected: int,texts:string[],xcount: int) : int
static functionselectiongrid(position:rect,selected: int,images:texture[],xcount: int) : int static functionselectiongrid(position:rect,selected: int,content:guicontent[],xcount: int) : int
static functionselectiongrid(position:rect,selected: int,texts:string[],xcount: int,style:guistyle) : int static functionselectiongrid(position:rect,selected: int,images:texture[],xcount: int,style:guistyle) : int
static functionselectiongrid(position:rect,selected: int,contents:guicontent[],xcount: int,style:guistyle) : int
parameters参数【】
position
rectangle on the screen to use for the grid.
用于网格在屏幕上的矩形位置。
selected
the index of the selected grid button
被选择表格按钮的索引号。
texts
an array of strings to show on the grid buttons.
显示在网格按钮上的字符串数组。
images
an array of textures on the grid buttons.
在网格按钮上的纹理图片数组。
contents
an array of text, image and tooltips for the grid button.
用于网格按钮的文本,图片和提示数组。
xcount
how many elements to fit in the horizontal direction. the controls will be scaled to fit unless the style defines a fixedwidth to use.
在水平方向上有多少元素,控件将缩放去适合宽度,除非样式定义了固定宽度(fixedwidth)。 style
the style to use. if left out, the button style from the current guiskin is used.
使用样式,如果不使用,按钮样式应用当前的guiskin皮肤。
returns
int - the index of the selected button.
返回int类型,被选择按钮的索引号。
description描述
make a grid of buttons.
创建一个网格按钮。
c#
javascript
using unityengine;
using system.collections;
public class example :monobehaviour{
public int selgridint = 0;
public string[] selstrings = new string[] {"grid 1", "grid 2", "grid 3", "grid 4"};
unity3D技术
void ongui() {
selgridint =gui.selectiongrid(newrect(25, 25, 100, 30), selgridint, selstrings, 2); }
}
var selgridint : int = 0;
var selstrings :string[] = ["grid 1", "grid 2", "grid 3", "grid 4"];
function ongui () {
selgridint =gui.selectiongrid(rect(25, 25, 100, 30), selgridint, selstrings, 2); }
相关推荐:
- [文秘资料]班长职务辞职报告
- [文秘资料]完美的辞职报告
- [文秘资料]经典的员工辞职报告
- [文秘资料]医院口腔医生辞职报告
- [文秘资料]总经理辞职报告范文四篇
- [文秘资料]超市职员个人辞职报告
- [文秘资料]村妇联主任的辞职报告
- [文秘资料]辞职报告书格式
- [文秘资料]酒店辞职报告简单范文
- [文秘资料]联通的辞职报告
- [文秘资料]2017最新私企员工辞职报告范文
- [文秘资料]2019年度医院基层党组织书记抓党建述职
- [文秘资料]工作时间长辞职报告
- [文秘资料]辞职报告怎么写出来
- [文秘资料]个人能力原因辞职报告
- [文秘资料]网络工程师辞职报告
- [文秘资料]项目部辞职报告
- [文秘资料]缝纫工辞职报告怎么写
- [文秘资料]XXX州委书记述职报告
- [文秘资料]抓基层党建工作述职报告
- (王虎应老师讲课记录)六爻理象思维
- 八个常见投影机故障排除法
- 质量专业综合知识(中级)第一章质量管理
- 煤矿班组建设实施意见
- 我国快餐业与肯德基经营模式的比较与分
- 汽车保险杠模具标准化模架技术工艺研究
- 汽车二级维护作业团体赛比赛规程
- 装卸搬运工安全操作规程
- 高效的工作方法-刘铁
- 依据《生产安全事故报告和调查处理条例
- 2015专业PS夜景亮化效果图制作教程
- 企业劳动定额定员浅析
- 中枢神经系统医学影像学本科五年制第五
- 长城汽车参观探营第三站:研发试验中心
- 小升初语文专项训练
- 建筑工程质量检测资质分类与等级标准
- 周燕珉-我国养老社区的发展现状与规划
- 《生命里最后的读书会》读后感
- 实验室管理评审报告
- CCNA思科网院教程精华之网络基础知识




