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

大约有 568 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

401. Laya.Utils.parseXMLFromString(treeData)好像没有 [ 52%]

...到要设置FPS laya 好像不能加载网络路径图片 请问下laya.ui.Component下面的anchorX和anchorY的作用,好像显示有问题? 好像Laya 不能像pixi 新建多个舞台 laya引用的第三方物理引擎matter,通过顶点构造的多边形好像有问题? 问题状态 最...

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

402. 对话框点击空白处无法关闭 [ 52%]

...r __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_slider.png"...

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

403. 按照官方例子操作,自定义组件编译出错 [ 52%]

...自定义组件编译出错 用fd编译报错 libs/laya/src/laya/editorUI/Component.as (86):warning:model This variable is not defined. 发现官方自定义组件教程里的地址https://github.com/layabox/layaair-ide-ui,更新时间是2016年的 代码里写的是model && model.size(_wi...

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

404. 脚本的事件(JavaScript-3D基础(JS)-LayaAir3D的脚本使用) [ 52%]

...ayaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.component.Script3D))。 关于脚本的添加使用这里不做过的讲解,在以往的示例中都有或多或少的使用脚本。关于脚本的官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language...

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

405. 射线检测-点击行走 [ 52%]

...0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); var mat = new Laya.StandardMaterial(); mat.diffuseTexture = Laya...

来源: Laya_示例 发布时间: 20241001

406. TypeError: Cannot read property '_layer' of null; at Function.FrustumCulling.renderObjectCulling [ 52%]

...property 'cursor' of undefined错误 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoke...

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

407. 场景节点如何获取,类似cocos的cc.find [ 52%]

...用了。   如果要调用其它script的方法,可以使用self.xxx._components[0].someFunc(); 我这么用好使,但是可能不规范,最好还是问问官方。 2019-03-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 181***...

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

408. layaAir自定义组件设置默认参数无效 [ 51%]

...lt;/ScaleButton> <MenuBtn className="laya.customUI.MenuBtn" inherit="Component" skinLabel="skin" resName="mbtn" icon="mbtn" group="公用,常用,宽高及位置" drag="3"> <prop name="skin" tips="按钮皮肤" type="string" default="" group="常用"/> <prop name="bgSkin" tips="按...

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

409. MovieClip is not a constructor [ 51%]

...rite cannot be invoked without 'new' Uncaught TypeError: Class constructor Component cannot be invoked without 'new' Uncaught TypeError: GlowFilter is not a constructor 升级Laya2.2.0报Class constructor Scene cannot be invoked without 'new'解决办法 聊天消息对话框中new一个HTMLDivEleme...

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

410. as3 自定义组件问题 [ 51%]

...custom\ScaleButton.js; 那么ScaleButton.xml->内容: className="component.ScaleButton"。是对的吗 mboat • 2017-09-25 22:14 还有ScaleButton.js,内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.gets...

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