• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 772 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0247 秒)

761. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

....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

762. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 38%]

...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

763. laya.ui.TextArea_API3.0 [ 37%]

...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

764. 安装layaair2-cmd一直失败 [ 36%]

...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

765. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...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

766. 打包成Android的apk之后,在某些机型一后台就有很大几率发现卡死Anr的情况,有anr日志 [ 36%]

...导的抠图透明区域为黑色,其它机型都是正常的。 修改stage的scale后,会发生异常情况 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 在线急等,发现你们这个编译器一个bug,不能实现负负得正 发布...

来源: Laya_社区 发布时间: 20190612

767. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 32%]

...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

768. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 31%]

...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

769. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 25%]

...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

770. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 22%]

... */ onAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.addChild(opendata); opendata.pos(100,100); opendata.size(500,500); } } 成功创建开放数据域视图节点后,我们只是完成了引擎层面要完成的工作流程,接下来我们还要完成微信小游戏...

来源: Laya3.0_文档 发布时间: 20251010