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

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

661. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 65%]

...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_社区 发布时间: 20170630

662. 关于多个小动画打包到一个图集动画的问题 [ 65%]

...10:59 //加载图集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loader.getRes("hero/hero_down2.jpg"); var h...

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

663. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 64%]

LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 ViewActivityLimitedTask.prototype.initComp = function() { this.list_view.vScrollBarSkin = ""; this.list_view.scrollBar.elasticBackTime = ListConst.elasticBackTime; this.list_view.scrollBar.elasticDistanc...

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

664. 3d中 缓动往一个点转向并移动的问题 [ 64%]

.....             //其中参数2中,有个update属性,值为Handler,即为动画执行时的回调,该回调中,可获取当前属性对象的属性值             Laya.Tween.to(countdown, {                 value: z + 2, update: new Laya.Handler(this,...

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

665. 事件绑定不触发bug [ 64%]

... = Laya.Texture;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var WebGL   = Laya.WebGL;         var sp;                  function callback(event) {             console.log(" callback test");         }             ...

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

666. laya.gltf.glTFResource_API3.0 [ 64%]

...Dispatcher registerExtra registerExtra(context: string, extraName: string, handler: Handler): void Defined in laya/gltf/glTFResource.ts:247 注册 extra 处理函数 Parameters context: string extraName: string handler: Handler Returns void unregisterExtra unregisterExtra(context: string, extraName:...

来源: Laya3.0_api 发布时间: 20231102

667. LayaNative中加载自己缓存的资源 [ 64%]

...时候始终读不了private function downloadFile(url:String,onComplete:Handler,onError:Handler=null):void{ if(window.conch) { var folder:String=window.conch.getCachePath()+"/download/"; if (!window.fs_exists(folder)) { window.fs_mkdir(folder); } var fileName:String = url.replace("http","").replace...

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

668. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 64%]

...a.net.AtlasInfoManager; import laya.net.ResourceVersion; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.Utils; import laya.d3.core.particleShuriKen.module.StartFrame; import laya.display.Sprite; import ui.BGPageUI; import ui.MonkeyPageUI; public class Main { public function Mai...

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

669. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 64%]

....tw1 = Laya.Tween.to(this.load_1, { scaleX:0.01 }, 250, Laya.Ease.quadOut, Handler.create(this, this.tw1Complete1)); 只要是设置scale值最终变为0就有问题,, var style=this.getStyle(); 这个获取的style是空的,,这个问题不是必现的,,,,, 附件 : --> 2018-03-15...

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

670. 分享:Dragonbones/Spine的换肤操作 [ 64%]

...head3.png 放置资源目录下 获取texture Laya.loader.load('head3.png',Handler.create(this,onTextureLoaded)); } private var texture:Texture; private function onTextureLoaded():void { texture=Loader.getRes('head3.png'); }整体代码如下package { import laya.ani.bone.Skeleton; import laya.ani.b...

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