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

大约有 621 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)

171. setBounds()后无法碰撞 [ 83%]

...回复被折叠 要回复问题请先登录 发起人 daohu 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 2.0一不小心删了bin目录下的某个场景json文件。。竟然无法自动生成了? Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 求指...

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

172. 资源回收的清理不干净的bug [ 83%]

...{         var myscene = new Laya.Scene3D;         Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){             for(var i=0; i<3; i++){                 var ball = myscene.addChild(sp.clone());           ...

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

173. LayaBox如何多点触摸? [ 82%]

...; var bmp:Bitmap = new Bitmap(bmd); bmp.width = 960; bmp.height = 640; var sp:Sprite = new Sprite(); sp.addChild(bmp); this.addChildAt(sp, 0); Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; sp.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); } protected function onTouchBegin(event:To...

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

174. BlurFilter的strength属性设置到5以上就没效果了 [ 82%]

...更模糊的效果?   public static function getScreenshot(bl:int=15):Sprite{    var htmlC:HTMLCanvas =_self.drawToCanvas(1334,750,0,0);    var _texture:Texture = new Texture(htmlC);    var sp2:Sprite = new Sprite();    sp2.graphics.drawTexture(_texture,0,0,1334,750);    var blurFi...

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

175. 浏览器最小化后降帧的问题 [ 82%]

...题,可以把你们的例子上传下,我们看下什么问题! var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); Browser.window.setInterval(function():void { sp.x+=5; },100); 2017-06-02 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

176. as hello world 背景还是黑色 [ 82%]

.../初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#ffffff"; var sp : Label = new Label("hello world"); //sp.fontSize = 55; sp.pos(100, 100) ; //sp.color = "#000000"; Laya.stage.addChild(sp); } } } chrome 下查看源代码 <html> <head> <meta charset='utf-8'/> <title&...

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

177. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 82%]

sprite.loadImage加载图片怎么设置要显示的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...

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

178. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 82%]

...= new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.rev...

来源: Laya2.0_文档 发布时间: 20210714

179. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 82%]

...= new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.rev...

来源: Laya2.0_文档 发布时间: 20210714

180. [LayaAir3]OPPO小游戏下图片地址无法加载 [ 82%]

...playe ... ot%3B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发现 qg.downloadFile  报 error {         "errCode": -3,         "statusCode": 404,         "errMsg": "co...

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