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

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

541. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 66%]

...默认程序,编写代码如下: ```java package { import laya.utils.Handler; import laya.webgl.WebGL; //导入UI发布生成的类 import ui.ComponentDemoUI; public class ComponentDemo { /**包含tab与viewStack组件的测试页面**/ private var comp:ComponentDemoUI; public function Component...

来源: Laya2.0_文档 发布时间: 20210715

542. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 66%]

...var sp=new Laya.Sprite(); sp.loadImage("res/apes/monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```javascr...

来源: Laya2.0_文档 发布时间: 20210715

543. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 66%]

...].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-21 16:44 你这个是list的逻辑,item的更新逻辑呢。item拿到数据后你做了什么处理? z624697 • 2018-03-21 16:46 现在是我将...

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

544. TiledMap.getLayerObject [ 66%]

...ctangle(0,0,320,160); tMap.createMap("res/TileMap/Test.json",viewRect,Laya.Handler.create(this,onCreateMap)); var point =0; function onCreateMap(){ this.role = tMap.getLayerObject("role","player"); console.log(this.role.x,this.role.y); }       附件 : --> 2017-11-24 添加评论 免费帖 --> ...

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

545. 天空-天空盒 [ 66%]

...yBox; import laya.display.Stage; import laya.net.Loader; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class SkyBoxSample { public function SkyBoxSample() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCR...

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

546. 有没有js版本Tween clear相关的demo?? [ 66%]

...tTween1 = Laya.Tween.to(this.spFetch, { rotation: -170 }, 3000, null, Laya.Handler.create(this, this.leftToRight2)) } leftToRight2(){ Laya.Tween.clear(this.leftToRightTween2); this.leftToRightTween2 = Laya.Tween.to(this.spFetch, { rotation: -10 }, 3000,null, Laya.Handler.create(this, this.leftToRigh...

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

547. 2.2.0 bata3版本,new Laya.Particle2D 报错 [ 66%]

...然后在游戏中创建就会报错。 Laya.loader.load("xxx.part", Laya.Handler.create(this, (settings: Laya.ParticleSetting) => { let particle = new Laya.Particle2D(settings); }), null, Laya.Loader.JSON); 附件 : --> 2019-08-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

548. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 66%]

...hongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(null, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

来源: Laya2.0_文档 发布时间: 20210714

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

...这样就能加载出来了Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{     var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我...

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

550. 缓动-时间线 [ 66%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...

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