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

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

51. list 加载动画为什么实现的效果会错乱掉? [ 60%]

...效果会错乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前...

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

52. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 58%]

...mage = Laya.Image;   var WID = 373, HEI = 85;   function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.St...

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

53. 粒子动画透明度问题 [ 57%]

...ticleShader extends laya.webgl.shader.Shader var ParticleShader=(function(_super){     function ParticleShader(){         ParticleShader.__super.call(this,ParticleShader.vs,ParticleShader.ps,"ParticleShader");     }      __class(ParticleShader,'laya.particle.shader.ParticleShade...

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

54. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 57%]

...E_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.text.zOrder = 1; this.addChild(this.text); this.setImg = function(data) { var aar...

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

55. 加载的时候动画会卡 [ 57%]

...e));     }   (function() {     function Lload() {         Lload.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing);         Laya.propertyIsEnumerable = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.d...

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

56. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 57%]

...85 * 4); var WID = 375, HEI = 85; function RankListItem() { RankListItem.__super.call(this); this.size(WID, HEI); this.img = new Laya.Image(); this.addChild(this.img); this.setImg = function (src) { this.img.skin = src; } } Laya.class(RankListItem, "RankListItem", Laya.Box); //rankList var rankList ...

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

57. list item 添加事件后无法监听 [ 56%]

...mage = Laya.Image;   var WID = 373, HEI = 85;   function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.St...

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

58. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 55%]

...put = laya.ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInpu...

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

59. 对象池 · LayaAir3.0文档 · LAYABOX [ 54%]

...的方式进行管理对象池: export class EffectA { constructor() { super(); } static create(): EffectA { Pool.getItemByClass(EffectA); } recover(): void { Pool.recoverByClass(this); } } export class EffectB { constructor() { super(); } static create(): EffectB { Pool.getItemByClass(EffectB); }...

来源: Laya3.0_文档 发布时间: 20230303

60. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 52%]

...。修改下CustomMaterial.js function CustomMaterial() { CustomMaterial.__super.call(this); this.setShaderName("CustomShader"); } Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial); CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.prototype.getDiffuseTexture = function () { return thi...

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