大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0186 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...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
...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
... 怎么把攻击 开火 合起来播放 // 程序入口 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
...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
...类,编写代码如下: ```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
...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
... class SmartScale_T { //适配模式 private modes:string = "exactfit"; //全局文本信息 private txt: Text; constructor() { //初始化舞台大小 Laya.init(1136, 640)...
来源: Laya2.0_文档 发布时间: 20200307
...,公司其它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
...高度(包括被裁剪的透明区域)。*/ 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
...来自: 就是按照官方例子来做的测试 /* * 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