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

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

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

732. 引用3d物理引擎失败,有文件丢失 Laya3D._physics3D.btVector3 找不到 [ 46%]

...sics3D.btVector3 找不到 TypeError: Laya3D._physics3D.btVector3 is not a constructor preload.js:55 at new PhysicsSimulation (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:12452:27) at new Scene3D (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:69360:28) at BoBingPanelView.__proto.in...

来源: Laya_社区 发布时间: 20181014

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

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

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

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

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

738. 图片像素精准点击问题! [ 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

739. 微信小游戏想使用截图功能是使用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

740. Laya.HTMLDivElement解析img标签报错 [ 46%]

...t;"         Laya.stage.addChild(div);     } TypeError: Illegal constructor laya.core.js:11687     at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24)     at Function.getInstance (file:///D:/work/test2/bin/libs/laya.html.js:1213:39)     at Function._parseX...

来源: Laya_社区 发布时间: 20190926