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

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

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

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

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

252. 粒子释放问题 [ 78%]

...      = Laya.Particle2D; var Browser          = Laya.Browser; var Handler          = Laya.Handler; var Stat             = Laya.Stat; var WebGL            = Laya.WebGL;   var sp;   (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Brows...

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

253. JS进度条加载问题 [ 78%]

... proArr = []; proArr[0]=pro1; proArr[1]=pro2; Laya.loader.load(proArr,Laya.Handler.create(this,onProLoaded)); if(Laya.Browser.onAndriod) { Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; } else { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.s...

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

254. Tween回调方法里如何带参数? [ 78%]

...法里如何带参数? Tween.to(sp, {x:_x, y:_y, alpha:1}, 1000, null, Handler.create(This, function(){     sp.destroy(); }), 500); 这样写sp并不能被销毁,请问laya里沒有onCompleteParams方法吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

255. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 78%]

...据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr....

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

256. 技术文档中的示例js运行报错 [ 78%]

...his.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya...

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

257. sound manager在MOUSE_OVER事件中无法播放 [ 78%]

...ya.SoundManager;     import Browser = Laya.Browser;     import Handler = Laya.Handler;     import WebGL = Laya.WebGL;      export class Sound_SimpleDemo {         //声明一个信息文本         private txtInfo: Text;          constructor()...

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

258. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 78%]

... laya { import Stage = Laya.Stage; import ComboBox = Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...

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

259. 背景音乐文件太大 播放延迟 [ 78%]

...aya.loader.load(['remote/music/' + this.soundUrl + '.mp3'], new Laya.Handler(this, () => {                 this.store.isDemo = true;                 Laya.Scene.open("scene/Home.scene")             }), new Laya.Handler(this, (value: number...

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

260. 在加载包含Animation的prefab后,动画没有显示 [ 78%]

...许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.Scene.addChild(OBJ); })); 附件 : --> Z...

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