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

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

301. UI-CheckBox [ 65%]

...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_示例 发布时间: 20251209

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

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

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

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

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

305. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...码如下: import { ItemBoxBase } from "./ItemBox.generated"; const { regClass, property } = Laya; @regClass() export class Script extends ItemBoxBase { constructor() { super(); } get dataSource(): any { return super.dataSource; } set dataSource(value: any) { super.dataSource = value; if (!value) ...

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

306. graphics绘制报错 [ 65%]

graphics绘制报错 class Sprite_DisplayImage { constructor() { Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Spr...

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

307. 报错,这不是个构造函数 "StartPage is not a constructor" [ 65%]

...nction(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",La...

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

308. 希望增加基于name的节点操作 [ 65%]

...很可能都不在一个父节点中。   按照前端开发的做法,class为a的所有节点的隐藏,代码写起来很简单:$(".a") .hide();   但是在laya项目中基本上操作起来能累死。   我觉得引擎中集成这样一个选择方法应该是比较容易的吧:dom.get...

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

309. 内嵌模式创建scene,运行时报找不到json文件 [ 65%]

...,并且都是ide自动生成的代码。     export module ui { export class HelloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png"...

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

310. as3字符串截取int的问题 [ 65%]

...报错Uncaught ReferenceError: int is not defined function DConfig(){}; __class(DConfig,'DConfig'); __getset(1,DConfig,'GamrRoomEnterPower',function(){ return DConfig.gamrRoomEnterPower; },function(value){ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPower.length); console.log(...

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