大约有 1,210 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
Laya_社区(874) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
...示了,以下是代码部分 环境:1.7.17_Beta 语言:as3 private var testAnim1:Animation; private var testAnim2:Animation; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKe...
来源: Laya_社区 发布时间: 20180424
...phicNode的初始skin,请问应该怎么获取到这个GraphicNode? var light: Laya.Animation = new Laya.Animation(); light.loadAnimation("ani/thunder.ani"); Laya.stage.addChild(light); light.play(0, true); 用light.frames获取结果为null,不行 2017-08-03 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170803
...new A(); } } }package { import laya.utils.Handler; public class A { public var completeHandler:Handler; public function A() { completeHandler = Handler.create(this,onComplete,[this]); completeHandler.run(); new B().load(completeHandler); trace('A',completeHandler.method == null,completeHandler['_id'...
来源: Laya_社区 发布时间: 20170330
...问题 我根据官方的示例的理解,想把这个盒子放在第十层 var dhBox = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.25, 0.05, 0.4))); var dhBoxMat = new Laya.StandardMaterial(); dhBox.meshRender.material = dhBoxMat; dhBox.transform.position = new Laya.Vector3(0.32, 2.13, 3...
来源: Laya_社区 发布时间: 20180409
...xtends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景图 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("../bin/background.png"); this.addChild(bg1); bg2.loadImage("../bin/b...
来源: Laya_社区 发布时间: 20160926
...手动关闭请求。但是HttpRequest在native下没有abort方法吗? var httpRequest = new laya.net.HttpRequest(); var h: any = httpRequest.http; h.abort(); 用的引擎版本是1.7.19.1beta 用的native版本是0.9.16 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180807
...i.Dialog; import laya.utils.Handler; public class Dialog_Example { private var dialog:Dialog_Instance; public function Dialog_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn...
来源: Laya3.0_api 发布时间: 20231115
...开放域数据的Sprite */ function drawOpenData(layout: Laya.Sprite) { var openDataContext = wx.getOpenDataContext() var sharedCanvas = openDataContext.canvas sharedCanvas.width = layout.width; sharedCanvas.height = layout.height; //先清空绘制 layout.graphics.clear(false); //设置大小 var ...
来源: Laya_社区 发布时间: 20180625
...,然后2.0beta4 子域怎么制作内容呢,就像是用微信需要 var image = Laya.Browser.window.wx.createImage(); image.onload = function () { console.log(image.width, image.height); context.drawImage(image, 0, 0); }; 绘制到sharecanvas 一样,我直接创建scene和view 都没有效果...
来源: Laya_社区 发布时间: 20181122
...需要设置为竖型的图集。 现在问题来了。根据代码 for (var i=0,sz=this._valueArr.length;i < sz;i++){ var index=this._indexMap[this._valueArr.charAt(i)]; if (!this.sources[index])continue ; texture=this.sources[index]; if (isHorizontal)this.graphics.drawTexture(te...
来源: Laya_社区 发布时间: 20180228