大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
...tage.bgColor = "#232628"; this.setup(); } private setup(): void { var gap: number = 10; //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height -...
来源: Laya2.0_示例 发布时间: 20260303
...tage.bgColor = "#232628"; this.setup(); } private setup(): void { var gap: number = 10; //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height -...
来源: Laya_示例 发布时间: 20260303
...operties : [ { name : "text", type : "string" }, { name : "count" , type: "number" }, { name : "actions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以...
来源: Laya3.0_文档 发布时间: 20251010
... let blueFnt = new Laya.BitmapFont(); blueFnt.loadFont("common/number_blue.fnt", new Handler(this, () => { Laya.Text.registerBitmapFont("number_blue", blueFnt); })); 但具体原因不清楚 能否请官方测试下bmfont在iphone上运行情况 201...
来源: Laya_社区 发布时间: 20170523
...og("加载结束"); } // 加载进度侦听器 private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onError(err: String): void { console.log("加载失败: " + err); } } } new laya.Loader_ProgressAndErrorHandle();package { import laya.events.Event; import l...
来源: Laya2.0_示例 发布时间: 20260303
...Joint owner : Node [只读]获取所属Node节点。 Component ratio : Number = 1.5[首次设置有效]两刚体移动距离比率PulleyJoint selfAnchor : Array[首次设置有效]自身刚体链接点,是相对于自身刚体的左上角位置偏移PulleyJoint selfBody : RigidBody[首...
来源: Laya2.0_api 发布时间: 20190513
...画最后一帧的索引值, */ private aniUrls(aniName: string, length: number): any { var urls: any = []; for (var i: number = 1; i < length; i++) { //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("imgs/role/wp116/" + aniName + i + ".png"); } return urls; ...
来源: Laya_社区 发布时间: 20171228
... this._addInputPosition = 0; } var pre: number = this._input.pos; !this._addInputPosition && (this._addInputPosition = 0); this._input.pos = this._addInputPosition; if (data) { if (typeof (data) == 'stri...
来源: Laya_社区 发布时间: 20220822
...数: // function(fixture:b2Fixture,point:b2Vec2,normal:b2Vec2,fraction:Number):Number // * fixture 定制器 // * point 碰撞点 // * normal 碰撞到的面的法线 // * fraction 起点到终点的距离*fraction=起点到碰撞点的距离 // * return 0 立即停止,根据遍历的顺序只...
来源: Laya_社区 发布时间: 20190519
...pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; var scaleFactor: Number = Browser.pixelRatio; Laya.stage.addChild(ta); } } } new laya.UI_TextArea();package { import laya.display.Stage; import laya.ui.TextArea; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; p...
来源: Laya_示例 发布时间: 20260303