大约有 1,448 项符合查询结果, 库内数据总量为 30,939 项。 (搜索耗时: 0.0055 秒)
Laya3.0_api(470) Laya_社区(446) Laya_示例(152) Laya2.0_示例(119) Laya2.0_api(71) Laya2.0_文档(71) Laya3.0_文档(61) laya_api(58)
...opertypublic var x:NumberX轴坐标yproperty public var y:NumberY轴坐标Constructor DetailVector2()Constructorpublic function Vector2(x:Number = 0, y:Number = 0) 创建一个 Vector2 实例。 Parameters x:Number (default = 0) — X轴坐标。 y:Number (default = 0) — Y轴坐标。 Method De...
来源: Laya2.0_api 发布时间: 20190513
...y,意味着getCurentPosition()直到位置可用时才会返回信息。 Constructor DetailGeolocation()Constructorpublic function Geolocation()Method DetailclearWatch()method public static function clearWatch(id:int):void 移除watchPosition安装的指定处理器。 Parameters id:intgetCurrentP...
来源: laya_api 发布时间: 20170929
...y,意味着getCurentPosition()直到位置可用时才会返回信息。 Constructor DetailGeolocation()Constructorpublic function Geolocation()Method DetailclearWatch()method public static function clearWatch(id:int):void 移除watchPosition安装的指定处理器。 Parameters id:intgetCurrentP...
来源: Laya2.0_api 发布时间: 20190513
... Templet = Laya.Templet; import Skeleton = Laya.Skeleton; class Main { constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Stat.show(); //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => { //模...
来源: Laya_社区 发布时间: 20220530
...; if (comp.isSingleton && this.getComponent((comp).constructor)) throw "Node:the component is singleton,can't add the second one."; this._addComponentInstance(comp); return comp; } 暂时的处理方式是把i...
来源: Laya_社区 发布时间: 20190609
...ss MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); } loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加 每张图片都是256*256大小...
来源: Laya_社区 发布时间: 20190315
...ta: Uint8ClampedArray; public width: number; public height: number; public constructor(width: number, height: number) { this.width = width; this.height = height; this.data = new Uint8ClampedArray(width * height * 4); } } window.ImageData = ImageData; // 报错的话改成window['ImageData']
来源: Laya_社区 发布时间: 20181122
... 下面是我的代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseUp, [true]); } /**...
来源: Laya_社区 发布时间: 20180731
...formatURL格式化后,会自动生成为"aaa/bb.png?v=99"的一个地址Constructor DetailURL()Constructorpublic function URL(url:String)创建一个新的 URL 实例。 Parameters url:StringMethod DetailformatURL()method public static function formatURL(url:String):String 格式化指定的地址...
来源: Laya2.0_api 发布时间: 20190513
...*/ public static poolModulResDic: Laya.Dictionary = new Laya.Dictionary(); constructor() { } static gameLoading(name: string, onCompleted: Function): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登...
来源: Laya_社区 发布时间: 20170905