大约有 7,520 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0480 秒)
Laya_社区(6803) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(81) Laya2.0_示例(57)
...象也消失了 是我的方法使用不对吗? 创建模型 let s:Laya.Sprite3D = (Laya.Loader.getRes("LayaScene_Plant/Conventional/Tree_52.lh") ).clone() as Laya.Sprite3D; 销毁模型 destroy(); 帮我看看 谢谢 附件 : --> TestPrefab.zip 2020-06-11 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20200611
...-22 0 2 分享 微博 QZONE 微信 mrchenx 赞同来自: var _parent = new Sprite(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Sprite(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _parent.addChild(_child);就像上面那样,我需...
来源: Laya_社区 发布时间: 20170222
...static function OnCreateComplete1():void{ trace("complete load role"); var sprite3D:Sprite3D = Laya.loader.getRes("laya_assert/LayaScene_role/role.lh"); mainScene.addChild(sprite3D); } 上面是我加载的代码。mainScene是我缓存的scene变量。 附件 : --> 2018-11-17 添加评论 免费帖...
来源: Laya_社区 发布时间: 20181117
...复被折叠 要回复问题请先登录 发起人 冰水blue 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 求指点3d射线碰撞和UI点击穿透的问题 matter中layasprite怎么改变图片大小? ma...
来源: Laya_社区 发布时间: 20180524
...件,或者文件读取失败,请检查后重新编译。 如何设置Sprite的宽高和点击区域? Animation 的createFrames 使用已经加载的图集缓存动画失败 请教一个关于laya2.5d项目美术规范的问题哈 FD 宏编译时 出现 试图访问该方法时失败 unity导...
来源: Laya_社区 发布时间: 20180416
...Laya.Vector3(300, 500, 0); var translate = new Laya.Vector3(0, 0, 0); Laya.Sprite3D.load("res/LayaScene_gamescene/Conventional/chest01.lh", Laya.Handler.create(this, function(sp:Laya.Sprite3D):void { console.log("111111111111111111111") var target: Laya.Sprite3D = scene3d.addChil...
来源: Laya_社区 发布时间: 20191206
...; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getChildByName("Ball") as Sprite3D; this.b...
来源: Laya_社区 发布时间: 20200515
用ide打包后的图片,Texture显示不出来? Sprite和Image可以显示出来,Texture报错、、、说找不到图片 代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){ var aa = new Sprite(); Laya.sta...
来源: Laya_社区 发布时间: 20171226
...) export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组件被启用后执行,...
来源: Laya3.0_文档 发布时间: 20251010
3D模型旋转定位问题 直接使用代码modelSprite = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(modelSprite); modelSprite.transform.rotate(new Laya.Vector3(0, 90, 0), false, false);无法实现旋转效果 也不会报任何错误,打断点是确定这个mode...
来源: Laya_社区 发布时间: 20180104