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

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

101. laya.ui.View_API3.0 [ 51%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex...

来源: Laya3.0_api 发布时间: 20231115

102. laya.ui.Dialog [ 50%]

...All Classes | Index | Frames No Frames DialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class DialogInheritanceDialog View Scene Sprite Node EventDispatcher Object Dialog 组件是一个弹出对话框,实现对话框弹出,拖动,模式窗口功能。 可以...

来源: Laya2.0_api 发布时间: 20190513

103. laya.ui.Tree [ 50%]

...| All Classes | Index | Frames No Frames TreeProperties | Methods | Events Packagelaya.uiClasspublic class TreeInheritanceTree Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties ...

来源: Laya2.0_api 发布时间: 20190513

104. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 50%]

...; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠标抬起事件侦听。抬起时还原按钮。 this.on(Laya.Event.MOUSE_UP,this, this.scaleBig); //添加鼠标离开事件侦听。离开时还原按钮。 this.on(Laya.Ev...

来源: Laya2.0_文档 发布时间: 20210715

105. socket无法连接服务器 [ 50%]

...d;         private initSocket(): void {             this.on(Laya.Event.OPEN, this, this.onConected);             this.on(Laya.Event.ERROR, this, this.onError);         }         public conectToServer(): void { //“连接”按钮的回调             if (this.connected...

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

106. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 50%]

...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //.......这...

来源: Laya2.0_文档 发布时间: 20210715

107. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 49%]

...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffe...

来源: Laya2.0_文档 发布时间: 20210714

108. laya3.0 [场景管理] 关闭场景 显存并未下降 [ 49%]

...勾选 场景1跳转场景2的代码       private onynYesBtn(evt: Laya.Event): void {         console.log("[BtnClick] [onynYesBtn!]");         //this.yn_board_Cc.selectedIndex = 0;         //跳转新场景         Laya.Scene.close("Scene.ls");         this._view.dispose(); ...

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

109. 刚刚接触2天layaair,有几个问题请教。 [ 47%]

...名btn1,但不知道怎么调用,强行在Main.js里面写入 btn1.on(Event.CLICK, this, onBtnClick); function onBtnClick() { alert('222'); } btn1 is not defined 按教程写脚本,实在找不到地方写,请问有没有类似教程呢。 问题3)我在Scenes 新建了2个view,一个是...

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

110. laya.ui.MoreGame [ 47%]

...ll Classes | Index | Frames No Frames MoreGameProperties | Methods | Events Packagelaya.uiClasspublic class MoreGameInheritanceMoreGame View Scene Sprite Node EventDispatcher Object 游戏中心插件 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Propert...

来源: Laya2.0_api 发布时间: 20190513