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

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

141. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 47%]

...例就可以拥有不同的播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = c...

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

142. 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' [ 47%]

...Array的zlib.min.js后报错 导微信小程序报错window.focus is not a function IDE通过.ui自动生成的ui代码报错 本地调试加载本地图片都报错 小游戏项目 加载有中文的json文件 报错 官网示例摇一摇报错,就解决方案 启动引擎报错 mPlugin.game_plug...

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

143. 我升级引擎到1.7.16beta,从Unity导入的模型就遇到问题了,可以帮我查看一下吗? [ 44%]

...3D; 可以帮我测试看看吗?   错误讯息: value.cloneTo is not a function     at AnimationTransform3D.__proto.setLocalRotation  LayaScene_Scene_LightMap.zip 2018-02-01 0 1 分享 微博 QZONE 微信 mobile3Dbin 赞同来自: 1.7.12、1.7.13的版号不是插件,是引擎的版号。 2...

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

144. 自定义shader-地形shader [ 42%]

...Component(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); cust...

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

145. 让 CylinderMesh 支持椎体 [ 41%]

让 CylinderMesh 支持椎体 function CylinderMesh(radius,radius2,height,slices){创建出下面半径大小   修改第二个循环结构, 也就是柱状顶点绘制   __proto.recreateResource=function(){ this._numberVertices=(this._slices+1+1)+(this._slices+1)*2+(this._slices+1+1); this._numb...

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

146. [BUG]刚体约束问题,移动后约束混乱! [ 40%]

...ure2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺和偏移     var tilingOffset = planeMat.tilingOffset;     tilingOffset.setValue(5, 5, 0, 0);     plan...

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

147. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 36%]

...837 Uncaught TypeError: Cannot read property 'props' of undefined     at Function.Laya3D._getSprite3DHierarchyInnerUrls (libs/laya.d3.js:1837)     at Loader.Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)     at EventHandler.__proto.runWith (libs/laya.core.js:1628)     at Loader.__proto.e...

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

148. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 24%]

...: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法获得最短路径 this._everyPath ...

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