大约有 621 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
Laya_社区(348) Laya3.0_api(74) Laya2.0_api(58) Laya2.0_文档(54) laya_api(53) Laya3.0_文档(14) Laya2.0_示例(10) Laya_示例(10)
...回复被折叠 要回复问题请先登录 发起人 daohu 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 2.0一不小心删了bin目录下的某个场景json文件。。竟然无法自动生成了? Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 求指...
来源: Laya_社区 发布时间: 20161211
...{ 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
...; 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
...更模糊的效果? 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
...题,可以把你们的例子上传下,我们看下什么问题! 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
.../初始化引擎 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
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
...= 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
...= 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
...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