大约有 238 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)
获取index.html中的值 如题:在index.html中定义两个变量并赋值;我想在游戏中获取到这个值,怎么做;上代码; <html> <head> <meta charset='utf-8'/> <title>www.layabox.com</title> <meta name='viewport' content='...
来源: Laya_社区 发布时间: 20170413
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from AnimationBase.hitTestPrior Defined in lay...
来源: Laya3.0_api 发布时间: 20231102
...图1-6所示: (动图1-6) 注:变量n还可以是从.json文件中获取的文本,开发者可以自己写一个.json文件,然后在脚本中进行加载,最后利用setVar方法赋值给变量n。 在游戏中比较常用的情况就是,如图1-7所示,当每个玩家进入游戏...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(this.path[this.nextPathIndex % this.pointCount...
来源: Laya2.0_文档 发布时间: 20210714
... Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint); this.getGridIndex(this.path[this.nextPathIndex % this.pointCount...
来源: Laya2.0_文档 发布时间: 20210715
...抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCount].x,path[nextPathIndex++ % pointCount].z, endPoint); //开...
来源: Laya2.0_文档 发布时间: 20210714
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String舞台的背景颜色,默认为黑色,null为透明。Stage blendMod...
来源: laya_api 发布时间: 20170929
...获得场景内的元素 怎么获得laya.input输入框里面的值 如何获取图片每个像素点的RGB? radioGroup设置labels后,每个radio的icon皮肤无法显示了 如何查看每个Sprite各自引发了多少次DrawCall 看官方2.0的shader例子,模型视图投影矩阵定义的...
来源: Laya_社区 发布时间: 20180113
...,当前像素根据设定条件决定是否输出颜色 Tiling Offset:获取纹理平铺和偏移 Material Render Mode:设置渲染模式 Opaque:默认设置,适用于没有透明区域的普通实体对象。 Cutout:允许创建在不透明和透明区域之间具有硬边的透...
来源: Laya3.0_文档 发布时间: 20251010
...,当前像素根据设定条件决定是否输出颜色 Tiling Offset:获取纹理平铺和偏移 Material Render Mode:设置渲染模式 Opaque:默认设置,适用于没有透明区域的普通实体对象。 Cutout:允许创建在不透明和透明区域之间具有硬边的透...
来源: Laya3.0_文档 发布时间: 20250104