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

大约有 1,490 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)

101. 材质-BlinnPhong-反射贴图 [ 92%]

...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, 1.3, 1.8)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.cle...

来源: Laya_示例 发布时间: 20251130

102. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 92%]

...adFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.addChild(camera); camera.transform.translate(new Laya.Vector3(0, 3, 5));...

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

103. UI-List [ 91%]

...onst Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin = src; } } class UI_List { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时...

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

104. UI-ScrollBar [ 91%]

...; hs.max = 100; hs.changeHandler = new Handler(this, onChange); Laya.stage.addChild(hs); } function placeVScroller() { var vs = new VScrollBar(); vs.skin = "../../res/ui/vscroll.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.changeHandler = new Handler(this, onChange); Laya.sta...

来源: Laya_示例 发布时间: 20251130

105. 使用 addChild 加载界面后,绑定事件报错 [ 91%]

使用 addChild 加载界面后,绑定事件报错 onConfigLoaded(): void {         //加载IDE指定的场景         //GameConfig.startScene && Laya.Scene.open(GameConfig.startScene);         Main.gameStart = new GameStart(); Laya.stage.addChild(Main.gameStart); ...

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

106. 材质-BlinnPhong材质加载 [ 91%]

...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.9, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directio...

来源: Laya_示例 发布时间: 20251130

107. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 91%]

...Laya.Ease.linearInOut,Handler.create(this,this.aeroboatTween1)); })); this.addChild(this.mountain); this.addChild(this.aeroboat); this.addChild(this.tower); this.addChild(this.ball); this.addChild(this.statue); this.addChild(this.angel); } // 更新岛 _proto.update = function(target){ var obj = {};...

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

108. 关于切换图片的问题 [ 91%]

...); this.img = new Laya.Sprite; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2); Laya.stage.addChild(this.img) } } new Main(); 出来的结果是两张图合并到了一起, 于是我再尝试 constructor() { Laya.init(1000,...

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

109. UI-List [ 91%]

...Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var List = Laya.List; var Handler = Laya.Handler; var WebGL = Laya.WebGL;...

来源: Laya_示例 发布时间: 20251130

110. 关于环形进度条,进度不能重置问题 [ 91%]

...x = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle....

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