大约有 503 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0054 秒)
Laya_社区(426) Laya2.0_文档(30) Laya3.0_文档(15) Laya2.0_示例(8) Laya_示例(7) laya_api(7) Laya3.0_api(6) Laya2.0_api(4)
... = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/powerup-pro.skel"; this.index = -1; // Laya.init(Browser.width, Browser.height, WebGL); // Laya.stage.scaleMode = S...
来源: Laya_社区 发布时间: 20211013
..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...
来源: Laya_社区 发布时间: 20181112
...zation.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 qian 赞同来自: ide版本...
来源: Laya_社区 发布时间: 20180206
...之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { public function CustomMaterial() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自定义...
来源: Laya2.0_文档 发布时间: 20210715
...lization": true, /* Enable strict checking of property initialization in classes. */ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ // "alwaysStrict": true, /* Parse in strict mode and emit...
来源: Laya_社区 发布时间: 20190408
...hengxi 感谢,仿照楼主写了个as3版本的。这里贴出来 public class FilterTest { public function FilterTest() { //初始化引擎 Laya.init(1110, 1110,WebGL); //设置舞台背景色 Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,c...
来源: Laya_社区 发布时间: 20170811
...码参考了上面那个连接,但稍微做了修改: // 程序入口 class GameMain{ constructor(){ var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var ProtoBuf = Browser.window.protobuf; ...
来源: Laya_社区 发布时间: 20170216
...看 海货 • 2018-07-15 16:17 import WebGL = Laya.WebGL; // 程序入口 class GameMain { constructor() { //TS或JS版本初始化微信小游戏的适配 Laya.MiniAdpter.init(); //初始化引擎 Laya.init(600, 400, WebGL); //设置屏幕缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCAL...
来源: Laya_社区 发布时间: 20180715
...f undefined Wechat Lib:2.0.1, 2018.4.14 12:32:36 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} WAGame.js:3 gameThirdScriptError Cannot read property 'USER_DATA_PATH' of undefined TypeError: Cannot read property 'USER_DATA_PATH' of undefined at Function.MiniFileMgr.setNa...
来源: Laya_社区 发布时间: 20180524
... this, this.onPauseBtnClick); this.reset(); } Laya.class(GameInfo, "GameInfo", _super); var _proto = GameInfo.prototype; _proto.reset = function(){ this.infoLabel.text = ""; this.hp(5); this.level(0); this.score(0); ...
来源: Laya_社区 发布时间: 20170416