大约有 538 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0073 秒)
Laya_社区(426) Laya2.0_文档(37) Laya3.0_文档(22) Laya2.0_示例(12) Laya_示例(11) laya_api(11) Laya3.0_api(10) Laya2.0_api(9)
...g.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{ constructor(){ super(); this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{ console.log("change"); ...
来源: Laya_社区 发布时间: 20180524
...fined console.log(this._super);//undefined this.addChild(this.txt); } Laya.class(UIDropBox, "UIDropBox", Sprite); UIDropBox.prototype = { getTextFeild: function () { var text = new Text(); text.overflow = Text.VISIBLE; text.color = "#FFFFFF"; text.fontSize = 20; return text; } } return UIDropBox; })...
来源: Laya_社区 发布时间: 20161226
...不多说直接看例子 undefined preload.js:55 Error: "Can not find class laya.effect.ColorFilterSetter" laya.core.js:29646 at getCompInstance (file:///D:/WQSG/Documents/testLayaFont/testLayaFont2/bin/libs/laya.core.js:29646:13) at createComp (file:///D:/WQSG/Documents/testLayaFont/testLay...
来源: Laya_社区 发布时间: 20190730
...值会变化,iphone6第一次加载正确,刷新几次就变大了。 class GameMain{ public static pxTimes: number = Laya.Browser.height / Laya.Browser.clientHeight; constructor() { console.log('ch=' + Laya.Browser.clientHeight + ', h=' + Laya.Browser.height + ', p...
来源: Laya_社区 发布时间: 20170403
...,所以只好上论坛求助了。 比如这么一个报错的地方: class Component extends laya.ui.Component implements laya.ui.IComponent { _getBoundPointsM(ifRotate?: boolean): Array<any>; disableLayout: boolean; protected resetLayoutX(): void; protected resetLayoutY(): void; } 类lay...
来源: Laya_社区 发布时间: 20181027
...r ts code: ============================================================ class Game{ private ProtoBuf:any = Browser.window.dcodeIO.ProtoBuf; ... } err code: ============================================================ TypeError: Cannot read property 'ProtoBuf' of undefined at new ...
来源: Laya_社区 发布时间: 20170222
...显示的x,y坐标和宽高? 代码: import TiledMap = Laya.TiledMap; class GameMain{ private tMap:TiledMap; constructor() { Laya.init(935, 224, Laya.WebGL); this.tMap = new TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.create...
来源: Laya_社区 发布时间: 20190214
...: 通过脚本中代码添加,示例代码如下所示: const { regClass, property } = Laya; @regClass() export class SpineTest extends Laya.Script { //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //加载预制体文件 Laya.loader.load("resources/spine3.8/b...
来源: Laya3.0_文档 发布时间: 20251010
...oader = Laya.Loader; import Handler = Laya.Handler; export class Loader_MultipleType { private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json"; private ROBOT_TEXTURE_PATH: string = "res/swf/star.png"...
来源: Laya_社区 发布时间: 20180203
... 2024-11-01 0 1 分享 微博 QZONE 微信 雄二 赞同来自: const { regClass, property } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("...
来源: Laya_社区 发布时间: 20241101