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

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

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

...效果会错乱掉? 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

202. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 55%]

... cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian * 0.5; } public function set360(valu...

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

203. 两个移动的简单物体 onTriggerEnter 无法触发 (有悬赏) [ 55%]

... default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); }  /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); };  onTriggerStay(other){ console.log("onTriggerStay"); };  onCollision...

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

204. 字体切片组件 · LayaAir3.0文档 · LAYABOX [ 55%]

... { type : Laya.FontClip } ) public fontclp: Laya.FontClip; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fo...

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

205. 分享个用美术资源做位图文本的方法。。。 [ 55%]

...ata: any,textureData: Laya.Texture,width: number,posType:string = "left"){ super(); this.width = width; this._posType = posType; this._jsonData = jsonData; this._imageData = textureData; } public set padding(v: number){ this._padding = v; this.setCharsPos(); } public get padding(): number{ return th...

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

206. 【LIST无法拖动】参照官方实例做的 [ 54%]

...xt;      private img: Image;     constructor(){         super();         this.size(Item.WID, Item.HEI);         this.img = new Image();         this.img.width = 200;         this.img.height = 200;         this.height = 230;    ...

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

207. 请问js怎么触发按钮的onclick事件,按教程的写,触发不知道为什么。 [ 54%]

...xtends Laya.Script { constructor(){ alert("1"); //执行后这里触发了 super();} onEnable(){ alert("2"); //执行后这里触发了 } onclick(){ alert("3"); //执行后点击按钮这里没触发,不知道为什么 //Laya.Scene.open("_game.scene"); } } 2018-10-28 添加评论 免费帖 --> 分...

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

208. 分享一个Shader版的CoolDown实现 [ 54%]

...        }\             ";             */             super(vs, ps, "coolDownShader");         }     } import WebGLContext = laya.webgl.WebGLContext;     import Value2D = laya.webgl.shader.d2.value.Value2D;     import CONST3D2D = laya.webgl.utils.CONST3D2D;     expor...

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

209. 加载.lh文件 运行后黑屏 无法显示 [ 54%]

...:boolean;     private twoFirst:boolean; constructor(){         super(); this._scene = null;      this._text = null;         this._camera = null;         this.rotation = new Laya.Vector3(0, 0.01, 0);      this.lastPosition = new Laya.Vector2(0, 0);      this.di...

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

210. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 54%]

...:boolean;     private twoFirst:boolean; constructor(){         super(); this._scene = null;      this._text = null;         this._camera = null;         this.rotation = new Laya.Vector3(0, 0.01, 0);      this.lastPosition = new Laya.Vector2(0, 0);      this.di...

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