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

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

291. list下怎么获取到一行元素 [ 66%]

...Aaron 赞同来自: https://layaair.ldc.layabox.com/api/?category=Core&class=laya.ui.List  参照这里API 2018-01-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 AllenYT 相关问题 请问有没有方法能够获取“鼠标是...

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

292. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 66%]

...    import { ui } from '../ui/layaMaxUI'; /**主界面 */ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) } ...

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

293. UI-Button [ 66%]

...laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Button { private const COLUMNS:int = 2; private const BUTTON_WIDTH:int = 147; private const BUTTON_HEIGHT:int = 165 / 3; private const HORIZONTAL_SPACING:int = 200; private const VERTICAL_SPACING:int = 100; private v...

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

294. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...属性入口中。在脚本文件中添加如下示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

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

295. 改变位置后,点击区域不生效了 [ 66%]

...splay.Sprite; import laya.events.Event; import laya.renders.Render; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } privat...

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

296. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...添加如下的示例代码,实现脚本控制RadioGroup: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.RadioGroup }) public radiogroup: Laya.RadioGroup; //组件被激活后执行,此时所有节点和组件均已创建完...

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

297. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 66%]

...){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError: Cannot read property 'call' of undefined     at Function.<anonymous> (laya.core.js:127)     at new Test (Test.j...

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

298. 对话框点击空白处真的无法关闭 [ 66%]

...Dialog.super(this); this.name = 'SelectColorDialog'; this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());调用对话框的方法 var dialog = new SelectColorDialog(); dialog.show(); 附件 : --> testCloseDialog.rar 2018-03-26 添加评论 免...

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

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

... 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; private var assets:Array; public function...

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

300. 屏幕方向:自动横屏与自动竖屏的设置详解(ActionScript-LayaAir基础篇(AS3)-屏幕适配) [ 65%]

...x.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Stage),找到screenMode属性。如图1所示。 ![图1](img/1-1.png) (图1) #### 1.1 默认值none或者不设置screenMode属性 默认值none或者不设置screenMode属性时,无论屏幕方向如...

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