大约有 218 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
...tions)} 代码如下: Laya.Browser.window["conch"].setExternalLinkEx( this.videoPlayerHtmlUrl, 0, 0, 1000, 800, true); 附件 : --> 2024-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠...
来源: Laya_社区 发布时间: 20240525
.../PangZi-Take 001.lani",]; Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish)); } onPreLoadFinish() { //初始化3D场景 _scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //获取相机 var camera = _scene.getChildByName("M...
来源: Laya2.0_文档 发布时间: 20210715
...priteToAnimationNode=function(sprite,nodeName,isLink){ if (this._avatar){ 这一步必须要有 avatar 文件,但是用新的2.0插件导出的角色不带avatar文件导致无法挂载,可在GameUI.ts 41行下断点调试进入查看。 var actor = Laya.Loader.getRes("res/Lay...
来源: Laya_社区 发布时间: 20191011
...del3D/PangZi-Take 001.lani",]; Laya.loader.create(resource, Handler.create(this, onPreLoadFinish)); } public function onPreLoadFinish() { //初始化3D场景 _scene = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/TerrainScene/XunLongShi.ls")) as Scene3D; //获取相机 var camera:Camera = ...
来源: Laya2.0_文档 发布时间: 20210715
...rite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.conte...
来源: Laya_社区 发布时间: 20151224
...,导致背景声音不播放问题。 Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus); private onBlur() { // 暂停所有需要停止的逻辑 console.log("onBlur"); SoundManager.Instance.pauseBGM(); ...
来源: Laya_社区 发布时间: 20250930
...ni", ]; //批量预加载 Laya.loader.create(resource, Laya.Handler.create(this, this.onLoaded)); onLoaded(): void { //加载完成后的处理逻辑…… } ``` 使用预加载资源的示例代码如下: ```typescript //获取预加载的3D场景资源对象 var _Scene3D: Laya.Scene3D = Laya.Loa...
来源: Laya2.0_文档 发布时间: 20210714
...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...
来源: Laya3.0_api 发布时间: 20231115