大约有 1,101 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(731) Laya3.0_api(83) Laya2.0_api(71) laya_api(66) Laya_示例(41) Laya2.0_示例(39) Laya2.0_文档(36) Laya3.0_文档(34)
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var MapLayer = Laya.MapLayer; var TiledMap = Laya.TiledMap; var Point = Laya.Point; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var tiledMap;...
来源: Laya_示例 发布时间: 20251209
LayaAir引擎 克隆sprite 什么克隆一个对象啊? 在下面的“ tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) { let tempSpr: Sprite = new Sprite(); ...
来源: Laya_社区 发布时间: 20170508
...复被折叠 要回复问题请先登录 发起人 肖亮亮 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 关于近期iOS提交,因违反苹果3.1.1导致APP上架被拒的说明 用了第三...
来源: Laya_社区 发布时间: 20250915
...known mesh version 使用的2.0.0版 加载unity2018.2导出的模型 Laya.Sprite3D.load("res/L2.0/Conventional/YJD.lh",Laya.Handler.create(this,function(sp){ var sprite3D = scene.addChild(sp); 加载报错 Laya 3D: unknown mesh version 2019-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20190130
分享:DrawToCanvas内存释放问题! package { import laya.display.Sprite; import laya.display.Text; import laya.events.Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Stat; public class LayaAirDemo { private var sp:Sprite ;//...
来源: Laya_社区 发布时间: 20170822
...age.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; this.sp = new Sprite(); this.sp.graphics.drawRect(0, 0, 200, 200, "#D2691E"); this.sp.pivot(100, 100); this.sp.x = Laya.stage.width / 2; this.sp.y =...
来源: Laya2.0_示例 发布时间: 20251209
ide跑没问题,安卓包跑报错 定义:bodyArr: Array<Sprite> = [] 被调用的函数 bodyCheck() { if (this.bodyArr.length <= 0) return; if (this.eatBean >= this.bodyBeanNum && this.bodyArr.length < this.bodyMaxNum) { let addBodyNum = Math.floor(this.eatBean / this.bo...
来源: Laya_社区 发布时间: 20180601
...问题 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) sprite旋转以后,但是原来碰撞检测rect没有旋转 请问LayaAir中如何使图片以圆形的方式显示? 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 分享:适配LayaAir版本的P...
来源: Laya_社区 发布时间: 20190629
...于3d场景下的两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.Blin...
来源: Laya_社区 发布时间: 20190717
...ayer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); this.sprite.pos(p.x, p.y); } mapLoaded() { this.layer = this.tiledMap.getLayerByIndex(0); var radiusX = 32; var radiusY = Math.tan(180 / Math.PI * 30) * radiusX; // 14.37 var color = "#FF7F50"; this.sprite = new Laya.Sprite(); thi...
来源: Laya2.0_示例 发布时间: 20251209