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

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

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

...Main.js格式完全和教程不同 import GameConfig from "./GameConfig"; class Main { constructor() { //根据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] &&am...

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

2522. 关于平行光渲染投影问题,求解惑 [ 45%]

...接 提交 1 个回复 Laya_Aaron 赞同来自: a503807636 // 程序入口 class LayaAir3D { private _quaternion: Laya.Quaternion = new Laya.Quaternion(); constructor() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = L...

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

2523. 微信小游戏,请先初始化小游戏适配库 [ 45%]

...适配库 Wechat Lib:1.9.94, 2018.3.15 14:07:52 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} code.js:7132 请先初始化小游戏适配库,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error Browser.__init__ @ code.js:7132 (anonymous) @ code.js:7057 (an...

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

2524. laya接入fairyGUI的时候资源加载方式? [ 45%]

.../** * FUI资源加载类 * jhj * QQ:8510001 * 2019-11-25 */ export default class FguiResMgr { private static _instance: FguiResMgr; public static get instance(): FguiResMgr { if (!this._instance) this._instance = new FguiResMgr(); return this._instance; } /**加载优先级,越小越优先,最...

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

2525. LayaAir DebugPanel 调试工具(TypeScript-2D进阶篇(TS)-调试相关) [ 45%]

...推荐用此方法!) 使用代码方式: ```typescript // 程序入口 class GameMain{ constructor() { //初始化舞台 Laya.init(1334,750); //调用DebugPanel调试面板 Laya.enableDebugPanel(); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; var Img:Laya.Sprite = new Laya.Sprite(); /...

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

2526. laya.d3.core.ui3d.UI3D_API3.0 [ 45%]

...herited Externals Only exported Menu Globals "laya/d3/core/UI3D/UI3D" UI3D Class UI3D BaseCamera 类用于创建摄像机的父类。 Hierarchy BaseRender UI3D Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge ...

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

2527. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 45%]

...(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebGL   = Laya.WebGL;     (function() { // 不支持WebGL时自动切换至Canvas L...

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

2528. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 45%]

...事件派发监听管理类 * author xiaosong * @date 2017-02-26 */ public class MsgMgr { /**共享画布类型**/ public static var SHAREDRESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return ...

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

2529. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 45%]

...ange261, 有谁知道什么原因导致的吗? 怎样解决? Warning!,this class[MiniAdpter] already exist: Object {init: } 请问object层中添加的sprite怎么添加点击事件 IDE不能运行调试提示:Chrome error: Error:... LayaAirIDE2.2 - Laya3D init error ,must support webGL 问题状...

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

2530. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...port Event = Laya.Event; import HttpRequest = Laya.HttpRequest; const { regClass } = Laya; @regClass() export class Network_GET extends Laya.Script { private hr: HttpRequest; private logger: Laya.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); ...

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