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

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

721. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...g"]; // 计算将Button至于舞台中心的偏移量 this.xOffset = (Laya.stage.width - this.HORIZONTAL_SPACING * (this.COLUMNS - 1) - this.BUTTON_WIDTH) / 2; this.yOffset = (Laya.stage.height - this.VERTICAL_SPACING * (this.skins.length / this.COLUMNS - 1) - this.BUTTON_HEIGHT) / 2; Laya.loader.lo...

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

722. 安装layaair2-cmd一直失败 [ 45%]

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

723. 分享:简单聊天室 [ 44%]

...his,onSendClick1); // enter键发送默认字体或输入框内字体 Laya.stage.on(Event.KEY_DOWN,this,onKeyDown); } private function onKeyDown(e:Event):void { // 当按下enter健自动发送文字 if(e.keyCode==13) { change(str); } } // 发送文字样式二,如果input有值的话,发送inpu...

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

724. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 43%]

...andler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite =...

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

725. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 43%]

...; constructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(...

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

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

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

727. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...据 tree.xml = new Laya.XML(treeData); tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var...

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

728. lib/arm/liblayaair.so 总崩溃 [ 30%]

...so     M EF6AE000 00000000 0000E000 AD12F266E11C52CE47A48142E9D9E4B60 libstagefright_amrnb_common.so     M EF6BB000 00000000 00022000 F4EED9E0DBCD0039613199B23DA49AD50 libexif.so     M EF6EA000 00000000 00015000 9DF5297991EBB31404CF11CD9C34AA6B0 libmtp.so 08-14 10:57:49.249 22858-22354/? A/goo...

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

729. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 30%]

...rX = 0; // 设置图片居中显示 // 将图片添加到舞台显示 Laya.stage.addChild(img); } else { console.log("收到数据:", message); } } private onConnectError(): void { console.log("Connection Error"); } } 运行效果如图3-1所示。 (图3-1) 3.3 基于Laya.Byte二进制通信 3.3.1 T...

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

730. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 29%]

...成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码若干,可前往Layabox官网示例或相关文档中查看 */ })); ``` ##### 5.2.2 预设的加载与使用...

来源: Laya2.0_文档 发布时间: 20210714