大约有 1,655 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(71) Laya_示例(58) Laya2.0_示例(54)
...} /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //接近完成加载时,让显示进度比实际进度慢一点,这是为打开场景时的自动加载...
来源: Laya3.0_文档 发布时间: 20241014
...} /** * 当报错时打印错误 * @param err 报错信息 */ onError(err: string): void { console.log("加载失败: " + err); } /** * 加载时侦听 */ onLoading(progress: number): void { //接近完成加载时,让显示进度比实际进度慢一点,这是为打开场景时的自动加载...
来源: Laya3.0_文档 发布时间: 20251105
...lic class MsgMgr { /**共享画布类型**/ public static var SHAREDRESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init...
来源: Laya_社区 发布时间: 20180525
...reate a new message var message = AwesomeMessage.create( { openid: "AwesomeString" }); console.log(message.openid) // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.verify(message); if (errMsg) throw Error(errMsg); // Encode a message to an...
来源: Laya_社区 发布时间: 20180704
...则传入关闭按钮的名字(name),否则为null。 */ onClosed(type: string = null): void { } /**场景打开完成后,调用此方法(如果有弹出动画,则在动画完成后执行)*/ onOpened(param: any): void{ } 注意1:不论是Scene2D节点还是2D预制体的根节点,它...
来源: Laya3.0_文档 发布时间: 20251010
....spine3D = this.owner.getComponent(Laya.Spine3DRenderer); let currentSkin: string = this.spine3D.skinName; // 记录当前皮肤状态 //播放停止后执行逻辑 this.owner.on(Laya.Event.STOPPED, this, () => { // 通过三元运算符切换皮肤名称 currentSkin = currentSkin === "full-skins...
来源: Laya3.0_文档 发布时间: 20260203
...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 Static TYPE_DYNAMIC TYPE_DYNAMIC: number = 1 Defined in laya/d3/physicsCannon/CannonRigidbody3D.ts:24 Static TYPE_KINEMATIC TYPE_KINEMATIC:...
来源: Laya3.0_api 发布时间: 20231102
...me 子节点的名字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child && child.name === name) return child; } return null; } 当我们找到子节点时,也可以对节点做一些基础操作,比如删除掉自己方法 ...
来源: Laya3.0_文档 发布时间: 20251010
...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 sortingFudge sortingFudge: number Inherited from PixelLineRenderer.sortingFudge Defined in laya/d3/core/render/BaseRender.ts:158 排序矫...
来源: Laya3.0_api 发布时间: 20231115
...组的图层,在图层的自定义属性栏,添加一个名为layer的string类型属性。操作如图4-1所示。 (图4-1) 点击OK,添加完成后,将所有添加了自定义属性layer的图层。设置分组名称。 例如,我们将块层2与块层3的分组名称设置为 layaAi...
来源: Laya3.0_文档 发布时间: 20251010