大约有 1,442 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0053 秒)
Laya_社区(922) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(33) laya_api(1) Laya2.0_api(1)
... Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene())...
来源: Laya_社区 发布时间: 20180725
...ontroller(){ super(); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Scene3D.load("res/model/LayaScene_Car/Conventional/car.ls", Handler.create(null, function(scene:...
来源: Laya_社区 发布时间: 20190328
....btn.y = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ; this.btn.size(25,25) ; this.btn.on(Laya.Event.CLICK, this, music.music_voice_toggle); 代码是这样的 , 图片上传不了,代码直接贴上来 2017-08-03 0 0 分享 微博 QZONE 微信 cuix...
来源: Laya_社区 发布时间: 20170803
...init(0, 0, true) 初始化的时候。android端和ios端表现不一样。stage初始化之后stage的宽高在什么时候能获取到准确的值? 在使用 Laya3D.init(0, 0, true); 初始化的时候。android端和ios的表现不一样。android的端 stage 的宽高会自动根据屏幕横...
来源: Laya_社区 发布时间: 20170613
...列表。 **示例代码:** ```javascript package { import laya.display.Stage; import laya.ui.Box; import laya.ui.Image; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { //列表对应图片的路径 private var data:Array = [ "../../../../res/ui/list...
来源: Laya2.0_文档 发布时间: 20210715
...资源锁的) } /** * @private 加载场景,并且将该场景添加到stage上 */ loadScene() { Laya.Scene3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Laya.Handler.create(this, function(scene){ this._scene = Laya.stage.addChildAt(scene, 0); var camera = scene.addChild(new Laya.Came...
来源: Laya2.0_文档 发布时间: 20210715
...该如何做? 运用frameloop重复执行加载文本资源函数 1 Laya.stage.frameLoop(1,this,this.Repeat,null,true); 这是加载资源的函数内的代码 1 2 3 4 5 6 7 8 loadPosition():void{ /* let resArray:Array<any>=[ {url:"eyeimf.txt",type:Laya.Loader.TEXT} ] Laya.loader.load(resArr...
来源: Laya_社区 发布时间: 20171228
TypeError: this._childs is null 用了Laya.stage.destroyChildren();之后出错 TypeError: this._childs is null 看不懂啊! 救命啊!!!!!! 还有火狐提示 HTTP "Content-Type" 中的 "text/html" 不支持。媒体资源加载失败。 无法播放媒体。没有相应格式的...
来源: Laya_社区 发布时间: 20171206
...this.bg = new BackGround(); //把背景添加到舞台上显示出来 Laya.stage.addChild(this.bg); })(); })(); //循环滚动的游戏背景 var BackGround = (function(_super){ function BackGround(){ BackGround.super(this); //创建游戏背景1 this.bg1 = new Laya.Sprite(); //加载并...
来源: Laya_社区 发布时间: 20191018
...tion(){ (function Game(){ Laya.init(480,852); this.bg = BackGround(); Laya.stage.addChild(this.bg); })(); })(); src/BackGround.jsvar BackGround = (function(_super){ function BackGround(){ BackGround.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("war/background.png"); this.addChild(th...
来源: Laya_社区 发布时间: 20181003