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

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

231. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 64%]

...(1280,720,Laya.WebGL);//有问题 console.log(Laya.version); var testSpriteRotation:PanelRotationTest = new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanel...

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

232. laya3D 发部为android,只要一创建场景(包括空场景)就有如下报错,并且黑屏 [ 64%]

...orm.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.mainCamera = camera; // var directionLight = scene.addChild(new Laya.DirectionLight()); // directionLigh...

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

233. 灯光-聚光 [ 64%]

...amera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.posit...

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

234. 限制模型旋转角度 [ 64%]

...北极的角度值是60,南极的角度是-60;我是用transform.localRotationEuler获取的角度,然后我再用transform.localRotationEuler=new Vector3(60,0,0),这个时候是北极正朝向观众,前提必须y和z的值是0,如果y值变化,比如transform.localRotationEuler=new Ve...

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

235. U3D场景导不出,出现以下问题。求帮忙导出!!!!! [ 64%]

...eObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild) LayaExport...

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

236. 微信小游戏wxmin图片加载有点问题 [ 63%]

...); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.4); directionLight.di...

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

237. 3D阴影无法渲染出来 [ 63%]

...); camera.transform.translate(new Laya.Vector3(0, 5, 0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.8, 0.8, 0.8); directionLi...

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

238. 没有预加载的图片怎么获取width和height ? [ 63%]

...stage.addChild(older);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height);      older.scale(2,2);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older....

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

239. 动画-新版骨骼动画 [ 63%]

... camera.transform.translate(new Laya.Vector3(0, 1.5, 4)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6...

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

240. ScrollRect设置会引起其他的UI资源无法正在显示 [ 63%]

...super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p.pos(i*PATH_LEN,0); arr.push(...

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