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

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

431. 2.0的文档是旧的例子 [ 69%]

...饥饿式更新啊 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 单个场景加载的时候,使用的Scene3D.load方法的第一个例子,地面部分是白色的 技术文档里面动画基础中的图集动画没有javascript版本的? ...

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

432. 使用外部引擎播放layaair制作的.ani [ 69%]

...lement.clientHeight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放...

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

433. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 69%]

...位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使...

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

434. label 和text 有啥区别 感觉差不多? [ 69%]

...细区别是什么? 斜角透视的感觉怎么弄出来呀?? Laya.Handler.create和new Laya.Handler有啥区别 HttpRequest感觉没有发成功 text组件在native2.0上运行会报错 问一下使用AnimationPlayer播放龙骨动画的时候,播放速率和播放时长区别 layabox2d例...

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

435. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 69%]

...后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //添加到舞台 Laya.stage.addChild(this.roleAni); } } new AtlasAniDemo(); ``` 运行代码,如图5所示。动画已加载到舞台上,默认是未播放状...

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

436. LayaBox里export关键字用或不用什么区别? [ 69%]

...,我用ts编写的相关内容,都要使用import和export吗? Laya.Handler.create和new Laya.Handler有啥区别 如何不用遮罩显示圆形微信头像,不用是因为遮罩在微信小游戏中失效 dispone和destory的区别 Dialog和View用destroy和Laya.stage.removeChild有什么...

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

437. layaair与layabox的区别 [ 69%]

...区别是什么? LayaAir 3D 有提供 3D 物理引擎功能吗? Laya.Handler.create和new Laya.Handler有啥区别 layabox打包app LayaAir怎么和FairyGUI整合 Dialog和View用destroy和Laya.stage.removeChild有什么区别? LayaAir Run 或者代码 显示的模型只有绿色 问题状态 ...

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

438. tween如何更改3d物体位置 [ 69%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

439. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 69%]

...():void { Scene3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Handler.create(this, function(scene:Scene3D):void { _scene = Laya.stage.addChildAt(scene, 0) as Scene3D; var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 1, 0));...

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

440. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 69%]

... laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Main { private var _tex:Texture; private var _htmlCanvas:HTMLCanvas; private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCo...

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