大约有 3,861 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0086 秒)
Laya_社区(3313) Laya2.0_文档(198) Laya3.0_api(102) Laya3.0_文档(97) Laya2.0_api(82) Laya_示例(44) laya_api(25)
...ncaught getUint16 error - Out of bounds 运行报错 Uncaught Can not find scene:GameView.scene undefined 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 2.0.0编译报错Cannot find global type 'Array' 构建app...
来源: Laya_社区 发布时间: 20201125
...is.unit3D = Laya.Loader.getRes("Unity/Unit.lh") as Laya.MeshSprite3D; this.scene3D.addChild(this.unit3D); this.unit3D.transform.localScale = new Laya.Vector3(1, 1, 1); this.unit3D.transform.translate(new Laya.Vector3(0, 0, 0)); var material:Laya.UnlitMaterial = Laya...
来源: Laya_社区 发布时间: 20190907
... this.isClick = false; //对舞台stage添加点击事件(这里由于有scene的缘故,点击空白处返回的对象是scene) Laya.stage.on(Laya.Event.CLICK,this,function(e) { if(e.target.name == "scene的名字") { this.isClick = true; //如果点击的是屏幕的空白处,那么让 isCl...
来源: Laya_社区 发布时间: 20210122
...lignV; Laya.stage.alignH = GameConfig.alignH; //兼容微信不支持加载scene后缀场景 Laya.URL.exportSceneToJson = GameConfig.exportSceneToJson; //打开调试面板(通过IDE设置调试模式,或者url地址增加debug=true参数,均可打开调试面板) if (GameConfig.debug || Lay...
来源: Laya_社区 发布时间: 20181027
...sh.createQuad(1,1)) let b:Laya.MeshSprite3D=a.clone() as Laya.MeshSprite3D scene.addChild(a) scene.addChild(b) 附件 : --> 2019-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 如果...
来源: Laya_社区 发布时间: 20190925
...te)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, this.scene, false, new Laya.Vector3(0.6, 0, 0)); //克隆...
来源: Laya2.0_文档 发布时间: 20210715
...number = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建刚体碰撞器 var rigidBody:Laya.Rigidbody3D = box.addComponent(Laya.Rigidbody3D); //创建盒子形状碰撞器 ...
来源: Laya2.0_文档 发布时间: 20210714
...件运行环境2.1 在Laya.Script中使用本地能力2.2 UI进程脚本和Scene进程脚本通讯的方式2.3 预览运行进程和UI进程的通讯方式三、制作编辑器UI四、程序化生成界面4.1 常用方法4.2 示例五、自定义Inspector字段编辑界面六、自定义面板七、...
来源: Laya3.0_文档 发布时间: 20251010
HIERARCHY_LOADED函数不回调 this.sceneP = Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3...
来源: Laya_社区 发布时间: 20180327
3D灯光阴影无效 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Vector3(1.0, 1.0, 0.9); directionLight.diffuseColor = new Vector3(1, 1, 1); directionLight.tr...
来源: Laya_社区 发布时间: 20170617