大约有 339 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
...aya.input输入框里面的值 gps定位获取当前城市名字 用sprite.graphics绘制一个矩形 这个矩形对象不能获得鼠标事件的么? Cannot read property 'displayObject' of null 引擎示例里的3d场景是如何获得的? 例如停车场那个场景, .ls 格式文件可用...
来源: Laya_社区 发布时间: 20181120
... let sp = new Laya.Sprite(); sp.graphics.drawRect(0,0,Laya.stage.width,Laya.stage.height,"#FFFFFF"); Laya.stage.addChild(sp); let guideView = new MazeGuideView(); guideView.zOrder...
来源: Laya_社区 发布时间: 20200119
...a.Sprite(); sp2.x = 300; sp2.graphics.drawTexture(_texture,0,0,100,100); Laya.stage.addChild(sp2); 2019-02-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...
来源: Laya_社区 发布时间: 20190215
...于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 graphics alpha 问题 问题状态 最新活动: 2017-10-08 11:41 浏览: 971 关注: 2 人
来源: Laya_社区 发布时间: 20171003
... y+=this._charSize.height; this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineColor || this.color,1); } y 如果 y+=this._charSize.height/2; 就是中划线 可以自己加个变量 控制 例如 linethrough 如果是 true...
来源: Laya_社区 发布时间: 20171019
...nu Globals "laya/display/Animation" Animation Class Animation Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存池,它以一定的内存开销来节省CPU开销,当相同的动画模版被多次使用时,相比...
来源: Laya3.0_api 发布时间: 20231115
...留白部分的颜色问题 如何设置Sprite的宽高和点击区域? graphics alpha 问题 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 Laya3D里的material可以设置flat shading么 关于同为object层,层级设置无效的...
来源: Laya_社区 发布时间: 20230227
...有多种做法,而其间差异很有必要知道。 使用getBounds/ getGraphicBounds。 var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); getBounds可以满足多数多数需求,但由于其需要计...
来源: Laya3.0_文档 发布时间: 20251010
...ite(); this.sprite.on('mousedown', this, on_down); this.sprite.graphics.drawCircle(x, y, r2, color2, color2, 2); this.sprite.graphics.drawCircle(x, y, r1, color1, color1, 0); function on_down(event) { console.log("_____ kbRing2\n"); } } function laya_test()...
来源: Laya_社区 发布时间: 20161221
...ayout.width; sharedCanvas.height = layout.height; //先清空绘制 layout.graphics.clear(false); //设置大小 var canvas = new Laya.Texture(sharedCanvas); canvas.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 layout.graphics.drawTexture(canvas); } 2018-08-10 0 0 分享 ...
来源: Laya_社区 发布时间: 20180625