大约有 432 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)
...:boolean; private twoFirst:boolean; constructor(){ super(); this._scene = null; this._text = null; this._camera = null; this.rotation = new Laya.Vector3(0, 0.01, 0); this.lastPosition = new Laya.Vector2(0, 0); this.di...
来源: Laya_社区 发布时间: 20190605
...不显示 export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera...
来源: Laya_社区 发布时间: 20200728
...public static _mainCol : number; inited : boolean = false; constructor() { super(); if(!this.inited) { CMat._mainTex = Laya.Shader3D.propertyNameToID("u_MainTex"); CMat._mainCol = Laya.Shader3D.propertyNameToID("u_MainCol"); CMat.initShader(); this.inited = true; } this.setShaderName("CMatShader"); ...
来源: Laya_社区 发布时间: 20190814
...createView调用代码么? 就像这样子: createChildren():void { super.createChildren(); this.createView(Laya.loader.getRes("test/TestPage.json")); this.loadUI("test/TestPage"); } 2. 在编辑器生成代码的时候怎么添加自定义的操作? 比如我想同时生成一...
来源: Laya_社区 发布时间: 20171229
...的链接 提交 4 个回复 ymsdandan 赞同来自: 你试下LoginView.__super.call(this) , 注意,是2个下划线 2017-11-08 0 3 分享 微博 QZONE 微信 caochangli 赞同来自: 官方没人回复下吗? 2017-11-08 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 你把这个...
来源: Laya_社区 发布时间: 20171108
...ene3D; private boxA: Laya.MeshSprite3D; constructor() { super(); Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.newScene = Laya.stage.addChild(ne...
来源: Laya_社区 发布时间: 20210103
... var x = 0; export default class Scene extends Laya.Sprite{ constructor(){ super(); Laya.init(500, 300, Laya.WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething(); } move() { sp = new Laya.Sprite(); Laya.sta...
来源: Laya_社区 发布时间: 20190520
... CustomMaterial extends Laya.Material { public function CustomMaterial() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir中自带的材质...
来源: Laya2.0_文档 发布时间: 20210715
...ivate sEnemyRes = "remote/model/res/Conventional/man_1.lh" constructor() { super(); let self = this; Util3d.loadRes( [ this.sMapRes, this.sBullRes, this.sEnemyRes ], function (bIsFinish) { if (bIsFinish) { self.onResFinish(); } } ) } onResFinish() { let pNewScene = <Laya.Scene3D>Util3d.getRes(...
来源: Laya_社区 发布时间: 20200720
... 微信 YuanAndJing 赞同来自: 飞机大战 JS视频中 第三节Role.super(this); 执行出错 请问是什么问题? 2017-08-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hodd1988 相关问题 关于微信小游戏关...
来源: Laya_社区 发布时间: 20170415