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

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

271. 文本-字符限制 [ 85%]

...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createLabel("只允许输入数字:").pos(50, 20); var input: Input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入字母:").pos(50, 10...

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

272. Cannot read property 'load' of null [ 85%]

...anager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } private init() { } private skins: Ar...

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

273. animate 动画播放 怎么把攻击 开火 合起来播放 [ 85%]

... 怎么把攻击 开火 合起来播放 // 程序入口 class GameMain { private roleAni: Laya.Animation; private timeLine:Laya.TimeLine = new Laya.TimeLine(); constructor() { //初始化舞台 Laya.init(1334, 750, Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画...

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

274. 编译报错,请官方大大看一下 [ 85%]

...on 赞同来自: 结贴了 sky1989chen :已解决。 SaveClipRect类中:private static var _cache:* =/*[STATIC SAFE]*/ SaveBase._createArray(); SaveTransform类中:private static var _no:* =/*[STATIC SAFE]*/ SaveBase._createArray(); SaveClipRectStencil类中:private static var _cache:* =/*[ST...

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

275. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 85%]

...类,编写代码如下: ```typescript // 程序入口 class MaskDemo{ private Res:string; private img:Laya.Sprite; constructor() { Laya.init(1336,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载图片资源,在图片资...

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

276. 文本-字符限制 [ 85%]

...Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { this.createLabel("只允许输入数字:").pos(50, 20); var input: Input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入字母:").pos(50, 10...

来源: Laya2.0_示例 发布时间: 20251209

277. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 85%]

... class SmartScale_T {           //适配模式         private modes:string = "exactfit";         //全局文本信息         private txt: Text;           constructor() {         //初始化舞台大小         Laya.init(1136, 640)...

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

278. iOS wkWebView [ 85%]

...,公司其它ios手机都没问题,求大神给解答下啊!     private connect(): void { console.log("connect...."); this.hr = new Laya.HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); t...

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

279. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 85%]

...高度(包括被裁剪的透明区域)。*/ this.sourceHeight=0; /**@private */ //this._loaded=false; /**@private */ this._w=0; /**@private */ this._h=0; /**@private 唯一ID*/ //this.$_GID=NaN; /**图片地址*/ //this.url=null; /**@private */ this._uvID=0; this._atlasID=-1; /**@private */ this...

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

280. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 85%]

...来自: 就是按照官方例子来做的测试 /* * name; */ class Test{ private socket: Laya.Socket; private byte: Laya.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this....

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