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

大约有 242 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0050 秒)

101. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 66%]

...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } new WatchPosition(); ``` ​ 由...

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

102. socket连接失败但是没有回调 [ 66%]

...前layaair,网页都是正常,构建xcode项目之后连接不上 Laya.Handler.create 加载图片回调参数问题 问题状态 最新活动: 2018-04-17 09:57 浏览: 1144 关注: 3 人

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

103. 创建树Tree 该怎么回调mouseHandler 形参该传什么 [ 66%]

创建树Tree 该怎么回调mouseHandler 形参该传什么 附件 : --> 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关链接 提交 1 个回复 cuixueying 赞同来自: z298959 tree.mouseHandler=new Handler(this,onTreeHandle...

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

104. Laya.MiniAdpter.downLoadFile缓存文件无法读取问题 [ 66%]

...le.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoadFile(url, null, handler); } else { this.DoLoadData(url); } } protected DoLoadDa...

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

105. 不带格式后缀图片无法成功加载 [ 66%]

.../ad.union.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y =...

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

106. tween如何更改3d物体位置 [ 66%]

...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

107. 求解:能通过改变Sprite宽高,让Sprite里Child缩放吗?【附图】 [ 65%]

...: 3 人 cuixueying • 2017-04-07 16:38 第6个参数不是function,是handler,用new HandlerHandler.create方式去写!

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

108. ios11, TimeLine在锁屏情况下complete和label回调没有触发 [ 65%]

...击某个物体 Laya.loader.create 进度回调函数执行两次 Laya.Handler.create 加载图片回调参数问题 问题状态 最新活动: 2017-10-24 16:10 浏览: 779 关注: 2 人

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

109. 分享:LayaAir下Loading进度条制作(ActionScript 3.0) [ 65%]

...ge { import laya.net.Loader; import laya.ui.ProgressBar; import laya.utils.Handler; public class LoadingDemo { private var progressBar:ProgressBar; public function LoadingDemo() { Laya.init(550,400); //预加载loading条资源 var pro1:Object={url:"loads/progressBar.png",type:Loader.IMAGE}; var pro...

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

110. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 65%]

...示例: ```java Tween.to(letterText, { y : 300 }, 1000, Ease.bounceIn, Handler.create(this,changeColor,[letterText]), i * 100); ``` 由于需要增加新引用,这次贴出全部示例代码。 TweenDemo.as: ```java package { import laya.display.Text; import laya.utils.Ease; import laya....

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