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

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

81. 刚刚接触2天layaair,有几个问题请教。 [ 84%]

...lignV; Laya.stage.alignH = GameConfig.alignH; //兼容微信不支持加载scene后缀场景 Laya.URL.exportSceneToJson = GameConfig.exportSceneToJson; //打开调试面板(通过IDE设置调试模式,或者url地址增加debug=true参数,均可打开调试面板) if (GameConfig.debug || Lay...

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

82. CameraMoveScript,父对象Camera移除removeAllComponent后,还会继续获取鼠标事件 [ 84%]

...Camera移除removeAllComponent后,还会继续获取鼠标事件 this.m_scene = new Laya.Scene(); this.m_sceneCamera = new Laya.Camera(0, 0.1, 100); this.m_sceneCamera.transform.translate(new Laya.Vector3(-40, 50, 60)); this.m_sceneCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.m_sceneCame...

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

83. 问下,3D模型导出有什么要求 [ 84%]

...的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor = new Vector3(0.6, 0.6, 0...

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

84. 求助 Uncaught SyntaxError: Unexpected identifier [ 84%]

...FULL; //显示统计数据 Stat.show(); // 给舞台添加laya3d场景 var scene= Laya.stage.addChild(new Scene()) as Scene; //初始化照相机 var camera = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), tr...

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

85. laya.ui.View_API3.0 [ 84%]

.../ui/View" View Class View View 是一个视图类 在2.0里,View继承自Scene类,但这是不合理的,Scene是一个2D+3D的大概念。所以在3.0里请忽略这个继承。 Hierarchy Scene View Dialog Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseU...

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

86. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 83%]

...比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Ha...

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

87. unity导出的场景.ls加载到laya3d中报错 [ 83%]

...creenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //添加3D场景 var scene = Laya.Scene.load("LayaScene_unity1/unity1.ls"); Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera...

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

88. 获得,stage缩放比例 [ 83%]

...折叠 要回复问题请先登录 发起人 sevennqi 相关问题 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 怎么获得laya.input输入框里面的值 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最...

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

89. laya空项目怎么加载unity带出的.ls文件 [ 83%]

....Stage.SCREEN_NONE; Laya.Stat.show(); //加载插件导出的场景。 var scene = Laya.Scene3D.load("LayaScene_xfg/layaScene.ls",Laya.Handler.create(this,function(_s){ Laya.stage.addChild(_s); })); 这样还是报错 说secne是void

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

90. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 83%]

...on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通过Laya.loader.create()预加载后。在3次Laya.Scene.load()后,最后一次 Laya.stage.destroyChildren();出现异常。(引擎是最新的...

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