大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0062 秒)
...Data.getInstance().openId }); this.rank = new Laya.Sprite(); this.box_rank.addChild(this.rank); Laya.Browser.window.sharedCanvas.width = this.box_rank.width; Laya.Browser.window.sharedCanvas.height = this.box_rank.height; //alwaysChange = true不好用了 手动刷新 Laya.timer.loop(50, this, () =&...
来源: Laya_社区 发布时间: 20181001
...ar img = new Laya.Sprite(); img.loadImage('images/item_5.png'); Laya.stage.addChild(img); img.on(Laya.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.S...
来源: Laya_社区 发布时间: 20170427
...text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpRequest(); //请求响应的进度改变时触发 this.hr.on(Event.PROGRESS, this, this.onHttpReques...
来源: Laya3.0_文档 发布时间: 20251010
... mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); } } } new laya.Loader_MultipleType(); 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 11 个回复 qian 赞同来...
来源: Laya_社区 发布时间: 20180203
... var rankSprite2 = new Laya.Sprite(); rankSprite2.zOrder = 100; Laya.stage.addChild(rankSprite2); var texture = new Laya.Texture(sharedCanvas); texture.bitmap.alwaysChange = true; rankSprite2.graphics.drawTexture(texture, left*pixelRatio, top*pixelRatio, width*pixelRatio,height*pixelRatio); ...
来源: Laya_社区 发布时间: 20180426
...study/project/client/test/air_war/bin/libs/laya.core.js:14081:19) at Scene.addChild (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:12752:22) at GameManager.createHero (file:///D:/work/study/project/client/test/air_war/bin/js/bundle.js:80:24) at GameManager.init (file:///D:/...
来源: Laya_社区 发布时间: 20200309
..."); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage....
来源: Laya2.0_文档 发布时间: 20210714
... { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya.stage.addChild(this.ape); //这里是我注释掉的代码 //var texture: Texture = Laya.loader.getRes(this.ApePath); //this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.sta...
来源: Laya_社区 发布时间: 20171106
...; { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11 20:47 @叶子:不算。这样只是给了刚体一个索引而已 叶子 • 2019-01-11 20:54 @源:额,我...
来源: Laya_社区 发布时间: 20190111
...e = new Laya.Image(); image.texture = new Laya.Texture(videoTexTure); this.addChild(image); image.pos(100,100); }); 2024-03-04 1 1 分享 微博 QZONE 微信 phhh 赞同来自: 2d播放视频要事件触发 2023-08-25 0 1 分享 微博 QZONE 微信 木易楊 赞同来自: 尝试过是否是微信限...
来源: Laya_社区 发布时间: 20230825