大约有 732 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0174 秒)
Laya_社区(366) Laya_示例(77) Laya2.0_示例(64) Laya3.0_api(63) Laya2.0_api(58) laya_api(53) Laya2.0_文档(37) Laya3.0_文档(14)
...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
...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
...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
...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
...; 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
....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
...据 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
...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
...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
...成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码若干,可前往Layabox官网示例或相关文档中查看 */ })); ``` ##### 5.2.2 预设的加载与使用...
来源: Laya2.0_文档 发布时间: 20210714