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

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

111. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 58%]

...ya.Vector3(0, 0.01, 0); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(300, 300, 300); Laya.Utils3D.convert3DCoordTo2DScreenCoord(translate, translate); layaMonkey.transform.position = translate; Laya.timer.frameLoop(1, this, funct...

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

112. laya的UI编辑页面显示不出来,但功能都能使用 [ 58%]

...ull TypeError: Cannot set property 'createCommandEncoder' of null     at Function.Laya3D.__init__ (file:///C:/Users/zyl/Downloads/LayaAirIDE_beta%20(1)/resources/app/out/vs/layaEditor/h5/renders/uiviewer/Editor.max.js:86236:40)   2018-11-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...

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

113. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 58%]

...xture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya.Handler.create(this, function (tex) {             this.mat2.a...

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

114. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 58%]

...戏项目。 Scene: the .lh file root type must be Scene,please use other function to  load  this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to  load  this file.     at MyScene.__proto.onAsynLoaded (http://127.0....

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

115. 微信小游戏 TS 使用 downLoadFile 出现报错 [ 57%]

...明,在使用的时候,报错。 ReferenceError: wx is not defined at Function.<anonymous>(file:///D:work/laya/laya3D/bin/lib/laya.wxmini.js:504:123) 2018-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

116. Dialog.show 的 showEffect参数在微信真机上的问题 [ 57%]

...: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来经过...

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

117. 图片遮罩大小跟设置不一致 [ 57%]

图片遮罩大小跟设置不一致 (function() { var Sprite  = Laya.Sprite; var Stage   = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL   = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.client...

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

118. ios微信clone特效会导致特效的mesh无法显示 [ 57%]

...false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D = sprite.clone() as Laya.Sprite3D; scene.addChild(clonesprite) as Laya.Sprite3D; clonesprite.transform.localScale = new Laya.Vector3( 0.01125, 0.01125, 0...

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

119. 如何过滤拥有相同name的节点对象? [ 57%]

... package { import laya.display.Sprite; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(550,400); var box:Sprite=new Sprite(); var sp1:Sprite=new Sprite(); sp1.name="aaa"; var sp2:Sprite=new Sprite(); sp2.name="aaa"; var sp3:Sprite=new Sprite(); sp3.name="aaa"; var sp4:Sprite=new...

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

120. 我就在unity中加了一个cube,导出后,在laya预览中怎么会有2个cube,而且位置还不一样,也没有贴图 [ 57%]

...不一样,也没有贴图   代码如下:/* * name; */ var scene = (function () { function scene() { //初始化引擎 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //添加3D场景 var scene = Laya.Scene....

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