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

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

291. 改变位置后,点击区域不生效了 [ 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

292. 调用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

293. 对话框点击空白处真的无法关闭 [ 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

294. 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

295. UI-CheckBox [ 66%]

...ya.ui.CheckBox; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_CheckBox { private const COL_AMOUNT:int = 2; private const ROW_AMOUNT:int = 3; private const HORIZONTAL_SPACING:int = 200; private const VERTICAL_SPACING:int = 100; private const X_OFFSET:int = 100; private const Y_O...

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

296. 取色器组件 · LayaAir3.0文档 · LAYABOX [ 66%]

...代码设定ColorPicker相关的属性。示例代码如下: const { regClass, property } = Laya; @regClass() export class UI_ColorPicker extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件...

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

297. 2.0版本 CameramoveScript添加就报错 [ 65%]

... 132*****260 • 2020-09-14 17:43 已经引用了。引用之后需要在class前面加入export default 132*****260 • 2020-09-11 18:57 我也是这样的问题

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

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

...            }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showEffect); this.closeEffect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLI...

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

299. 屏幕方向:自动横屏与自动竖屏的设置详解(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

300. laya3d物体碰撞与触发检测的问题 [ 65%]

...与触发检测的问题 import BoxMove from "./BoxMove"; export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene...

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