大约有 400 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
... { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); //添加照相机 var camera:Camera = (scene.addChild(new Camera( 0, 0.1, 100))) as Came...
来源: Laya_社区 发布时间: 20180116
...ender (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:16444:20) at Scene3D.__proto._renderScene (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:34333:124) at Camera.__proto.render (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:44132:9) at Scene3D.__proto.renderSubmit (file:/...
来源: Laya_社区 发布时间: 20190809
...图1-2) 所以,通常我们把每一套不同功能的UI,用场景(Scene)来规划;把能复用的功能性UI,用预制体(Prefab)来规划 。 1.2 UI管理方式 在UI开发过程中,我们会使用Image,Box,Tab等等这些LayaAir 提供的UI组件。对于一套相对复杂...
来源: Laya3.0_文档 发布时间: 20251010
...修改自身材质: ...... //添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new ...
来源: Laya_社区 发布时间: 20171109
...2.0开发思路为组件化,脚本化,场景管理开发,项目采用Scene管理方式,来管理场景,LayaAir 已经对Scene做了一系列方案,使得开发者无需考虑场景,关卡,页面的资源,内存管理,只需要单纯的调用接口,管理场景,其他的交给...
来源: Laya3.0_文档 发布时间: 20251010
射线检测报错,outHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{ private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene; public _load(owner : any):void{ this.scene ...
来源: Laya_社区 发布时间: 20181020
... IDE1.7.8 json图集加载问题 图集打包找不到图集文件 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 请问下加载TFF字体要怎么加载呢? 微信小程序 发布后缺少app.json文件 编辑了图片 执行代码说加载...
来源: Laya_社区 发布时间: 20170912
...is.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, this._arrLabel[index], Laya.Event.FOCUS]); element.on(...
来源: Laya_社区 发布时间: 20200410
...ug吗,我的代码是根据教程来写的,现附上代码export class Scene{ // 当前场景的配置信息 private _mLevelConf:LevelConf = null; // 地图文件 private _mTiledMap:TiledMap = null; // 自定义信息文件 private _mLoader:Loader = null; // 当前地图X坐标 private _mViewPor...
来源: Laya_社区 发布时间: 20180529
...lick3d extends Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(new Laya.Vector3(0, 0.7, 5)); this.camera.transform.rotate(new...
来源: Laya_社区 发布时间: 20200801