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

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

151. 微信小游戏iPhone X 等解决方案 [ 81%]

...自带适配方案 Laya.init(SCREEN_WIDTH,SCREEN_HEIGHT, Laya.WebGL); Laya.stage.scaleMode =Laya.stage.SCALE_FIXED_WIDTH; Laya.stage.alignV = Laya.stage.ALIGN_MIDDLE; Laya.stage.alignH = Laya.stage.ALIGN_CENTER;   //纠正宽度 function AdaptiveScrene() {     var width = Math.max(Laya.Browser.cl...

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

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

...    Laya3D.init(0, 0);         //设置画布模式         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;         Laya.Stat.show();         this.tmpVector = new Laya.Vector3(0, 0, 0);         this.scene = Laya.stage.ad...

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

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

...era.CLEARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(this.m_sceneCamera); 在destory的时候 this.stage.removeChild(this.m_scene); this.m_sceneCamera.removeAllComponent(); this.m_scene.destroy(); this.m_scene = null; 只会...

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

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

ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...

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

155. laya.ui.View_API3.0 [ 80%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scene3D s...

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

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

...uper();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console....

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

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

...始化3d引擎 张习会 • 2020-06-30 09:45 Laya3D.init(1000, 800); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //加载插件导出的场景。 var scene = Laya.Scene3D.load("LayaScene_xfg/layaScene.ls",Laya.Handler.cre...

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

158. unity导出的场景,相机节点找不到,移动和属性设置都做不了 [ 80%]

...置都做不了 var scene:Scene=Scene.load("LayaScene_Main/Main.ls"); Laya.stage.addChild(scene); camera = Laya.stage.getChildByName("Main Camera") as Camera;   ....... camera.viewportPointToRay(point, ray); 提示错误:Cannot read property 'viewportPointToRay' of null" 附件 : --> H5Dev.rar 20...

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

159. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 80%]

...al/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript); //label用于显示 var _lab:Label = new ...

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

160. 获得,stage缩放比例 [ 79%]

获得,stage缩放比例 stage有如下 设置: Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; 请问, 进入游戏后, 是否可以获得stage缩放了多少呢? 2017-11-02 添加评论 免费帖 --> 分享 微...

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