大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
Laya_社区(176) Laya3.0_api(61) Laya2.0_api(58) Laya2.0_文档(57) laya_api(54) Laya2.0_示例(19) Laya3.0_文档(18) Laya_示例(15)
...ng](img/8.png) 完整代码如下: ```java package { import laya.display.Stage; import laya.display.Text; import laya.resource.Texture; import laya.utils.Handler; import laya.display.BitmapFont; public class TestBitmapFont { //自定义文件名称 private var mFontName:String = "diyFont"; private...
来源: Laya2.0_文档 发布时间: 20201114
...过2048导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
来源: Laya_社区 发布时间: 20180713
...碰撞体报错,Cannot read property 'btSphereShape' of undefined Laya.stage报null 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined 问题状态 最新活动: 2022-01-06 19:59 浏览: 2797 关注: 2 人 173*****785 • 2022-01-08...
来源: Laya_社区 发布时间: 20220106
...switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是...
来源: Laya_社区 发布时间: 20180502
...; sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 看清楚 文档的用法。。。 18688961270 • 2017-04-18 15:25 我重新整理的代码和文件,按你的指示去做还是行不通的! 18688961270 • 2017-04-18 16:41 已经...
来源: Laya_社区 发布时间: 20170417
....x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠...
来源: Laya3.0_文档 发布时间: 20251010
...x.b = tempMatrix.b; matrix.c = tempMatrix.c; matrix.d = tempMatrix.d; Laya.stage._canvasTransform = matrix;//重新设置矩阵 } }); } } } 具体使用例子,可以参考: 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 https://ask.layabox.com/question/15086 完...
来源: Laya_社区 发布时间: 20180525
...261 赞同来自: 创建的话如果不设置pos()位置的话默认为Stage的(0,0)点如果第一次创建设置了相应位置然后再移除后再次创建是不会存储你上次创建后设置的位置的,如果第二次创建没有重新设置位置的话,还是会默认创建...
来源: Laya_社区 发布时间: 20180411
...y = 32 * 4; this.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop ...
来源: Laya_社区 发布时间: 20160803
... = [0, 4, 0, 4]; input.restrict = "0-9";//限制输入字符为数字 Laya.stage.addChild(input); 2019-02-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 wu语 相关问题 关于微信小游戏关系链的问题 微信关系链:Laya...
来源: Laya_社区 发布时间: 20190225