大约有 772 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0247 秒)
Laya_社区(428) Laya3.0_api(62) Laya2.0_api(58) Laya2.0_文档(57) laya_api(53) Laya_示例(49) Laya2.0_示例(48) Laya3.0_文档(17)
....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
...rite = new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThroug...
来源: Laya_社区 发布时间: 20161109
...extArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea =...
来源: Laya3.0_api 发布时间: 20231115
...Users\Administrator\AppData\Roaming\npm\node_modules\.staging 31936 timing stage:rollbackFailedOptional Completed in 3367ms 31937 timing stage:runTopLevelLifecycles Completed in 192968ms 31938 warn notsup Unsupported engine for got@5.7.1: wanted: {"node":">=0.10.0 <7"} (current: {"node":"12.13...
来源: Laya_社区 发布时间: 20200211
...e { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y",...
来源: Laya3.0_文档 发布时间: 20251010
...导的抠图透明区域为黑色,其它机型都是正常的。 修改stage的scale后,会发生异常情况 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 在线急等,发现你们这个编译器一个bug,不能实现负负得正 发布...
来源: Laya_社区 发布时间: 20190612
...mp.png"); 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....
来源: Laya2.0_文档 发布时间: 20210714
...ame("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); this.pivot = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot") as Laya.Sprite3D; let newRot = new Laya.Quaternion(0, 0...
来源: Laya_社区 发布时间: 20171228
...mmc 赞同来自: ls场景文件通过Laya.loader.create()预加载后Laya.stage.destroyChildren()出现异常Cannot read property 'visible' of null。 问题详情见:https://ask.layabox.com/question/5103 2017-06-15 0 1 分享 微博 QZONE 微信 150*****372 赞同来自: 目前,使用最新版...
来源: Laya_社区 发布时间: 20170428
... */ onAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.addChild(opendata); opendata.pos(100,100); opendata.size(500,500); } } 成功创建开放数据域视图节点后,我们只是完成了引擎层面要完成的工作流程,接下来我们还要完成微信小游戏...
来源: Laya3.0_文档 发布时间: 20251010