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

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

621. ui设计模式下属性中var,name有何区别? [ 66%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 1.7.20beta有bug,帧属性面板打不开 lh文件内meshSprite添加阴影属性无效 问一下使用AnimationPlayer播放龙骨动画的时候,播放速率和播放时长区...

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

622. 输入设备-贪吃蛇(重力感应) [ 66%]

... Laya.Accelerator; var Point = Laya.Point; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50");...

来源: Laya_示例 发布时间: 20260820

623. 有时候加载一大堆资源的时候某个个别图片资源加载失败如何处理 [ 66%]

...。          */         public function load(url:*, complete:Handler = null, progress:Handler = null, type:String = null, priority:int = 1, cache:Boolean = true, group:String = null, ignoreCache:Boolean = false):LoaderManager { 你可以根据加载回调进行相应的判断,加载失...

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

624. 导出的3D资源加载报错 [ 66%]

...cene.Scene;     import laya.d3.math.Vector3;     import laya.utils.Handler;          import laya.display.Stage;     import laya.events.Event;     import laya.utils.Stat;          public class LayaSample {                  private var _stateMachine:Stat...

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

625. 游戏系怎么把一些共用的功能独立出来 [ 66%]

..., type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.win...

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

626. list中加的button不能接收点击事件 求一个list中加button的demo [ 66%]

... true;         list.itemRender = BagItem;         list.renderHandler = new Handler(this, this.updateListItem);         list.selectHandler = new Handler(this, this.onSelect);                 this.addChild(list);         list.array = data;       }     ...

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

627. laya.ui.List [ 66%]

...如果父节点手动设置为false,则不会更改)。 Sprite  mouseHandler : Handler单元格鼠标事件处理器(默认返回参数e:Event,index:int)。List mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件的捕获...

来源: laya_api 发布时间: 20170929

628. dialog的lock属性没出现 [ 66%]

....ui.Button; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; ...

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

629. 多个button如何区分 [ 66%]

...r(var i:int=0;i<10;i++) { var btn:Button=new Button(); ....... btn.clickHandler = laya.utils.Handler.create(this,this.onClickButton,[i],false); } this.onClickButton = function(id){ 通过ID 判断点击哪一个按钮! } 189*****192 • 2017-04-26 09:38 @cyqcyqcyq:我明白你的意思 this.emo...

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

630. UI-FontClip [ 66%]

...ALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Laya.Handler.create(this, this.ShowContent)); } ShowContent() { const FontClip = Laya.FontClip; var clipnum= new FontClip(assets[0]); var fontClip = new FontClip(assets[1]); var TestFontClip = new FontClip(assets[1]); var TestClip...

来源: Laya2.0_示例 发布时间: 20260820