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

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

241. 粒子释放问题 [ 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

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

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

244. 技术文档中的示例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

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

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

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

246. 分享:为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

247. Uncaught TypeError: Cannot read property '_tf' of null [ 78%]

...mage.scale(1,1);     Tween.to(image,{scaleX:0.5,scaleY:0.5},600,null,new Handler(this,tweenGuide,[image]),500); }   public function tweenGuide1(image:Image):void {    Tween.to(image,{x:100,y:100},600,null,new Handler(this,tweenGuide1,[image]),500); } *******************************************...

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

248. ui list 里面的元素不能点击两次 [ 78%]

ui list 里面的元素不能点击两次 你好,咱们list list.selectHandler = new Handler(this, onSelect); 只能获取一次点击事件么? 如何修改才能让list里面的元素 可以被连续点击?  附件 : --> 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

249. 在加载包含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

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