大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(917) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(72) laya_api(2) Laya2.0_api(2)
... 01-25 20:35:11.988 6022-6038/? E/LayaBox: JCSceneCmdDispath::_rendercmd_addChild error can't find the node3d id=-1 2018-01-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 dfklegend 赞同来自: Laya3D.init(170...
来源: Laya_社区 发布时间: 20180126
...接 提交 1 个回复 183*****755 赞同来自: this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = (this.scene.addChild(new Laya.Camera(0, 1, 1000))) as Laya.BaseCamera; this.camera.transform.translate(new Vector3(0, 0, 500)); 这样用即可! 2016-10-17 0 0 分享 ...
来源: Laya_社区 发布时间: 20161017
...wn); img.on(Laya.Event.MOUSE_DOWN, this, this.onImageMouseDown); viewStack.addChild(img); 然而不管设置是true还是false,都是子元素先检测到mousedown事件,请问是不是hitTestPrior无效? 2017-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170917
...el/hanbao.lh"); goldNode = this.scene_3d.addChild(sp); goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() * 5)); ...
来源: Laya_社区 发布时间: 20200326
...载背景1 var bg1 = new Sprite(); bg1.loadImage("war/bc.png"); Laya.stage.addChild(bg1); //加载背景2 var bg2 = new Sprite(); bg2.loadImage("war/bc.png"); //更改背景2 放在背景1的上面 bg2.pos(0,852); Laya.stage.addChild(this); Laya.timer.frameLoop(1,this,myLoop); } function myLoo...
来源: Laya_社区 发布时间: 20191017
...ght / 2); ani.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(ani); } })();module laya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rectangle; import Loader = Laya.Loader; import Browser = Laya.Browser; import WebGL = Laya.WebGL; expor...
来源: Laya_示例 发布时间: 20251209
...eateApe() { const Sprite = Laya.Sprite; let ape = new Sprite(); Laya.stage.addChild(ape); apeTexture = Laya.loader.getRes(apePath); ape.graphics.drawTexture(apeTexture); return ape; } } new Filters_Color();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Lay...
来源: Laya2.0_示例 发布时间: 20251209
...onal/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab.heigh...
来源: Laya2.0_文档 发布时间: 20210715
...radiusX, radiusY, 0, radiusY * 2, color); Laya.stage.addChild(this.sprite); } // private createMap (): void//, undefined, new Point(1600, 800) // { // this.tiledMap = new TiledMap(); // // Laya.loader.create(["res/til...
来源: Laya_社区 发布时间: 20201230
...prite; let character = new Sprite(); character.loadImage(skin); Laya.stage.addChild(character); return character; } } new Tween_SimpleSample();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; ex...
来源: Laya2.0_示例 发布时间: 20251209