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

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

761. laya.ui.Button_API3.0 [ 40%]

... Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成...

来源: Laya3.0_api 发布时间: 20231115

762. laya.ui.CheckBox_API3.0 [ 39%]

...heckBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成...

来源: Laya3.0_api 发布时间: 20231115

763. Laya中Button等组件lose skin的问题 [ 39%]

...例UI界面     var Main: MenuPageUI = new MenuPageUI();     Laya.stage.addChild(Main); } 在我找原因的时候,我发现主要是和设置了基础路径有关,也发现了3种可以正常展示飞机的做法。 做法A:直接将Laya.URL.basePath ="https://xxx.com/";设置基础...

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

764. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 38%]

...y = 32 * 4; this.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var ...

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

765. 使用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

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

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

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

768. 安装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

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

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

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

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

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