大约有 12 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0035 秒)
2.0.0beta5 can not find class Laya.Text 我有个项目 Laya.version 显示 2.0.0beta5 请问我应该下载哪个版本的编辑器?我下载了 这两个版本的,运行的时候提示我这个 这是什么情况啊 附件 : --> 2021-06-24 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20210624
... 支持 加载下一个场景的同时执行异步方法 */ export default class LoadPage { constructor(url = null) { this._loadScene = null if (url) this.preload(url) } /** * 预加载loading页面 * @param {String} url loading页面url */ async preload(url = 'loadingpage.scene') { if (this._loadSc...
来源: Laya_社区 发布时间: 20181124
...把demo发来我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "...
来源: Laya_社区 发布时间: 20171213
...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name 老项目类库升级到 LayaAir 2.1.0beta报错! 按官网上的文档 使用LayaNative运行LayaAir项目https://ldc.layabox.com/doc/?nav=zh-as-7-0-1。出现了问题 LayaAir 2.0 TS版编译出错GameConfig...
来源: Laya_社区 发布时间: 20170215
...放入UI某个元件底下,运行时会报错误 Uncaught Can not find class ui.test.QQQUI undefined 2018-10-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 wulilio 赞同来自: Supermang42 同有这个问题...
来源: Laya_社区 发布时间: 20181019
...是否需要关注? Demo代码(已测试有效): // 程序入口 class GameMain { constructor() { Laya.init(640,1100, Laya.WebGL); //设置适配模式 Laya.stage.scaleMode = "showall"; //设置剧中对齐 Laya.stage....
来源: Laya_社区 发布时间: 20170105
...相机进行。因此务必保持与摄相机相同。 **/ export default class ExtCullingMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟子添加 ...
来源: Laya_社区 发布时间: 20200110
...和教程搜索无果,想请教如何做才能实现。 export default class CMat extends Laya.BaseMaterial { public static _mainTex : number; public static _mainCol : number; inited : boolean = false; constructor() { super(); if(!this.inited) { CMat._mainTex = Laya.Shader3D.propertyNameToID("u_Ma...
来源: Laya_社区 发布时间: 20190814
...型项目回调 /** * 创建时间 2017/04/16 */ module PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; pri...
来源: Laya_社区 发布时间: 20180119
...); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 this.ball = new Sprite(); // 城堡 this.tower = new Sprite(); // 飞艇 this.aeroboat = ne...
来源: Laya_社区 发布时间: 20170720