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

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

1041. 微信小游戏 点击区域 在 IPAD Iphone上出现偏移 [ 68%]

...碗的时候我改了下分辨率,居然好了 //Laya3D.init(320, 568, true); Laya3D.init(400, 600, true); 但是……为啥…… Laya_Aaron • 2019-02-20 10:54 @栗子猫大王:那个分辨率比例不大对

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

1042. 3D加载不了 [ 68%]

...复 189*****024 赞同来自: 加载不了任何模型 Laya3D.init(0, 0, true);         //初始化引擎         //适配模式         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;         //开启统计信息         ...

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

1043. UI3D只有第一层可以检测到点击事件 [ 68%]

...都可以触发点击事件,但在UI3D中,虽然设置了Enable Hit为true,但只能触发根节点的Button的点击事件 2. BillBoard为true的时候无法设置Sprite3D的scale 附件 : --> LayaProject10.zip 2023-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

1044. Laya2.0开放数据域项目,发布微信开发工具预览,出现报错 [ 68%]

...5 12:26 请问具体要怎么操作,是在开放域声明MiniAdpter.init(true,true)吗? 云淡风清 • 2019-01-17 18:35 同問

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

1045. laya.d3.webxr.core.WebXRCamera_API3.0 [ 68%]

...d3/core/Camera.ts:368 清除标记。 enableRender enableRender: boolean = true Inherited from Camera.enableRender Defined in laya/d3/core/Camera.ts:366 是否允许渲染。 name name: string = "" Inherited from Node.name Defined in laya/display/Node.ts:59 节点名称。 Optional tag tag: string I...

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

1046. TS项目使用promise解决方案 [ 68%]

...ompilerOptions": { "module": "commonjs", "target": "es5", "noEmitHelpers": true, "importHelpers": true, "sourceMap": false, "lib":[ "es5", "dom", "es2015.promise" ] }, "exclude": [ "node_modules" ] } 其中lib用来支持promise,importHelpers用来支持 async/await功能   编译即可,如果...

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

1047. 能不能让LayaFlash支持原生的条件编译 [ 68%]

...)->编译常量(Compiler Constats),写入 CONFIG::cn,false CONFIG::en,true 如图: 2.在代码中写入 CONFIG::cn{     [Embed(source="ui_cn.swf", mimeType="application/octet-stream")]     private const _Ui_SWF:Class;   } CONFIG::en{     [Embed(source="ui_en.swf", mimeType="applica...

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

1048. laya.ui.Image_API3.0 [ 67%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...

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

1049. laya.resource.VideoTexture_API3.0 [ 67%]

...Resource.lock Defined in laya/resource/Resource.ts:95 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:97 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource....

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

1050. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...192.168.1.2", 8899); //如果需要wss安全协议,第5个参数需要为true。 // let socket = new Laya.Socket("192.168.1.2", 8899, null, null, true); 2.1.2 connect 方法 先创建 Socket 对象,再调用 connect(host, port) 建立连接。 let socket = new Laya.Socket(); socket.connect("192....

来源: Laya3.0_文档 发布时间: 20251010