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

大约有 1,448 项符合查询结果, 库内数据总量为 30,939 项。 (搜索耗时: 0.0045 秒)

1051. laya.d3.math.Vector2 [ 46%]

...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

1052. laya.device.geolocation.Geolocation [ 46%]

...y,意味着getCurentPosition()直到位置可用时才会返回信息。 Constructor DetailGeolocation()Constructorpublic function Geolocation()Method DetailclearWatch()method public static function clearWatch(id:int):void 移除watchPosition安装的指定处理器。 Parameters id:intgetCurrentP...

来源: laya_api 发布时间: 20170929

1053. laya.device.geolocation.Geolocation [ 46%]

...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

1054. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 46%]

... 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

1055. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 46%]

...;         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

1056. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 46%]

...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

1057. 微信小游戏想使用截图功能是使用canvasToTempFilePath()吗 [ 46%]

...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

1058. 图片像素精准点击问题! [ 46%]

...   下面是我的代码处理: 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

1059. laya.net.URL [ 46%]

...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

1060. 内存释放问题 [ 46%]

...*/ 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