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

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

3981. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 43%]

...);  scene.addChild(res1); scene.addChild(res2);  Laya.timer.frameLoop(1, this, () => { res1.transform.localPositionX += 0.016; res2.transform.position.x += 0.016;  console.log("本地坐标1:", res1.transform.localPosition); console.log("世界坐标1:", res1.transform.position); console.log("...

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

3982. Laya3D.init(0, 0, true) 初始化的时候。android端和ios端表现不一样。stage初始化之后stage的宽高在什么时候能获取到准确的值? [ 43%]

...e的大小进行变化时,会触发事件。 Laya.stage.on(Event.RESIZE, this, function():void { // To Do - UI.pos });   2017-06-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sfsmmc 相关问题 Layabox 2.0 bate5 运行编译之...

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

3983. 使用layaide构建的安卓项目打包apk,安装在某些设备上会闪退 [ 43%]

...打包apk,安装在某些设备上会闪退 以下是错误日志:    This device supports vao     download thread num = 3 04-18 17:26:51.141 1371-1402/com.etvtech.pvsz I/LayaBox: start thread:image decode,1402 04-18 17:26:51.151 1371-1371/com.etvtech.pvsz I/LayaBox: createOpenALSource curren...

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

3984. laya.ui.WXOpenDataViewer_API3.0 [ 43%]

... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...

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

3985. laya.ui.UIComponent_API3.0 [ 42%]

... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...

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

3986. videoNode在安卓上不能播放 [ 42%]

...a.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试。完整的demo及效果已放置附件中。 2023-10-09 0 0 分享 微博...

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

3987. 关于laya生成的canvas定位问题导致内部事件不正确 [ 42%]

...a.Event.MOUSE_DOWN, img, onStartDrag); function onStartDrag(){ console.log(this); clickIndex++; msgDiv.html('图片选中了' + clickIndex + '次'); // img.startDrag(); } // Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; // Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; }); </script> </html>...

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

3988. 滤镜的集中实现 [ 42%]

...fff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //创建阴影滤镜位图 c...

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

3989. 一篇了解LayaAir的屏幕适配,及有效抗锯齿(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 42%]

...以在项目代码里强制HDR效果。示例代码如下: ```typescript this.camera = new Laya.Camera(0, 0.1, 100); this.camera.enableHDR = false; //关闭HDR ``` 关闭HDR后,抗锯齿生效对比效果如图9-2所示。 ![10-2](img/10-2.png) (图10-2) #### 2.4 抗锯齿有效,为什么还...

来源: Laya2.0_文档 发布时间: 20210715

3990. 今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined [ 42%]

...TH' of undefined Wechat Lib:2.0.1, 2018.4.14 12:32:36 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} WAGame.js:3 gameThirdScriptError Cannot read property 'USER_DATA_PATH' of undefined TypeError: Cannot read property 'USER_DATA_PATH' of undefined     at Function.MiniFileMgr....

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