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

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

31. laya接入fairyGUI的时候资源加载方式? [ 86%]

...:8510001 * 2019-11-25 */ export default class FguiResMgr { private static _instance: FguiResMgr; public static get instance(): FguiResMgr { if (!this._instance) this._instance = new FguiResMgr(); return this._instance; } /**加载优先级,越小越优先,最小为0 */ private priority: number =...

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

32. 节点类型有什么作用么 [ 85%]

...类型有什么作用么 每个节点的类型有三种,mask,render,instance mask遮罩时候用,render我在list里面用了。instance是什么时候用的呢。 还有这个render都什么时候可以用的呢 2018-08-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

33. 颜色滤镜 差值变化 [ 85%]

...er = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilter = null; private _persent: number = 0; protected constructor() { this.targets = new Array<Laya.Sprite>(); } /** * 实例 */ public static getInstance():...

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

34. Cannot read property 'load' of null [ 85%]

...null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); ...

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

35. [LayaNative3]Laya3.3.0 beat4 发布windows 无法导出自己的wasm文件 [ 84%]

...w window.WebAssembly.Module(data);                         let instance = new window.WebAssembly.Instance(module, imports);                         let ret = {};                         ret["instance"] = instance;                         return ret;  ...

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

36. [LayaAirIDE3]xcode切入切出声音不播放 [ 84%]

...止的逻辑         console.log("onBlur");         SoundManager.Instance.pauseBGM();         // // 部分机型包内不生效         SoundManager.Instance.pauseAllEffects();     }    private onFocus() {         if (!SoundManager.isPlay) {             SoundManager.isP...

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

37. 陀螺仪接口问题 [ 84%]

陀螺仪接口问题 Laya.Gyroscope.instance.off(Laya.Event.CHANGE,this,this.test) 调用off方法但是没有生效 还是一直在走on方法去监听陀螺仪旋转 2018-01-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

38. 获取相机renderTexture 作为阴影 的UV [ 84%]

...render.transform.worldMatrix, VPO);             ShaderManager.Instance.SetShadowLightMatrix(render, mat);             ShaderManager.Instance.SetShadowMapTexture(render, this.RenderTexture);//RenderTexture为阴影相机的renderTarget             ShaderManager....

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

39. laya.events.MouseManager_API3.0 [ 84%]

...es disableMouseEvent mouseDownTime mouseMoveAccuracy mouseX mouseY enabled instance multiTouchEnabled Methods check3DUI handleCapture handleExclusiveCapture releaseCapture runEvent setCapture Properties disableMouseEvent disableMouseEvent: boolean = false Defined in laya/events/MouseManager.ts:34 ...

来源: Laya3.0_api 发布时间: 20231102

40. laya.device.motion.Gyroscope_API3.0 [ 84%]

...s "laya/device/motion/Gyroscope" Gyroscope Class Gyroscope 使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提...

来源: Laya3.0_api 发布时间: 20231115