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

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

301. 求助高手请进,关于场景导入的问题~ [ 81%]

...:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我创建一个继承Scene的类,在这个类里边我怎么去给自己设置场景资源? var scene1:GameScene = new GameScene(); Laya.stage.addChild(scene1);   public clas...

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

302. 3D灯光阴影无效 [ 81%]

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

303. 屏幕适配-缩放-No Border [ 81%]

...e(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Sta...

来源: Laya2.0_示例 发布时间: 20251209

304. 屏幕适配-缩放-No Scale [ 81%]

...e(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya.Sprite; import Stag...

来源: Laya2.0_示例 发布时间: 20251209

305. 没有人尝试使用3d物理引擎么 [ 81%]

...启统计信息 Stat.show(); //添加3D场景 var scene:Scene=Laya.stage.addChild(new Scene()) as Scene; //添加照相机 var camera:Camera=(scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 3, 6)); camera.transform.rotate(new Vector3(-15, 0, 0), true, fa...

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

306. 我想用代码来绘制一个3D球如何弄呢?看我写的 [ 81%]

...eenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); // camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); // camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera...

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

307. 照着官方文档写的 Dialog 报错? [ 81%]

....prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadD...

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

308. Bitmap引用计数的问题 [ 81%]

...uot;res/test.png"; image2.skin = "res/test.png"; Laya.stage.addChild(image1); Laya.stage.addChild(image2); 加载完了后再执行一次 Laya.loader.clearRes("res/test.png"); 这时候两张图片的纹理数据都被清除了,引用计数没有用啊,不应该是在执...

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

309. 多重遮罩显示异常 [ 81%]

...bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = 500; this.panel.vScrollBarSkin = ''; this.panel.hScrollBarSkin = ''; this.addChild(this.panel); let line = new Laya.Sprite(); line.size(...

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

310. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 81%]

...tructor() { super(); //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; this.scene3d = scene; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 3, ...

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