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

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

401. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

... Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this.txt.setVar("n", p...

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

402. Button 添加事件不执行? [ 72%]

...lStroke = 10; rightBtn.x = 100; rightBtn.y = 200; rightBtn.on(Event.CLICK, this, clickHandler); rightBtn.clickHandler = Handler.create(this, function () { console.log('click handler'); }); function clickHandler () { console.log('on click') } Stage.addChild(rightBtn);  请问一下,为什么事件...

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

403. [LayaAir3]list.selectHandler [ 72%]

...选择的索引:" + index);         let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox;         if(checkBoxItem!=null){                         switch(checkBoxItem.name.trim()){                 case "0":{                ...

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

404. args.slice is not a function [ 72%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

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

405. Clip组件Bug:Play方法无法结束循环 [ 72%]

...s);         if (interval != void 0) {             this.interval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {             this.destroy();         });         this.frameIndex = 0;       ...

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

406. 同步龙骨插槽动画方案 [ 72%]

...ring, handler: Laya.Handler, aniMode: number = 0) {         this._handler = handler;         this.mFactory = new Laya.Templet();         this.mFactory.on(Laya.Event.COMPLETE, thisthis.parseComplete, [aniMode]);         this.mFactory.loadAni(url);   ...

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

407. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 72%]

...     //关闭效果     hideEffect(): void {         Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn);              }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = L...

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

408. Animation动画鼠标点击事件不起作用? [ 72%]

...         private var m_btn_auto:Button;   m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎么回事...

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

409. 关于下拉列表的选择触发 [ 72%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

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

410. args.slice is not a function [ 72%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

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