大约有 6,956 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0223 秒)
Laya_社区(6391) Laya2.0_文档(168) Laya3.0_文档(83) Laya3.0_api(76) Laya2.0_api(72) laya_api(68) Laya_示例(62) Laya2.0_示例(36)
# Sprite3D的Layer ###### *version :2.7.0beta Update:2020-6-12* Sprite3D也有Layer蒙版(图层)属性。该属性设置可以在使用摄影机可视遮罩层,射线检测等情况下起作用。下面节选自的摄影机遮罩层示例([demo地址](https://layaair.ldc.layabox.com/demo2/?...
来源: Laya2.0_文档 发布时间: 20210715
获取Sprite位置问题 class Plant extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动...
来源: Laya_社区 发布时间: 20180427
# Sprite3D的Layer ###### **version :2.7.0beta Update:2020-6-12** Sprite3D也有Layer蒙版(图层)属性。该属性设置可以在使用摄影机可视遮罩层,射线检测等情况下起作用。下面节选自的摄影机遮罩层示例([demo地址](https://layaair.ldc.layabox.com/demo2...
来源: Laya2.0_文档 发布时间: 20210715
请问 .lh资源导出时会在角色外包裹一层sprite3D 是什么意思? 2017-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: laya不能直接用模型文件,我们选用的...
来源: Laya_社区 发布时间: 20171228
如何用代码触发点击事件? 比如sprite1注册了点击事件: this.sprite1.on(Laya.Event.CLICK, this, this.sprite1CallBack); 怎样不用点击,而用代码去触发? 是 this.sprite1.event(Laya.Event.CLICK) 这样吗? 2018-07-24 1 条评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180724
Laya3d下sprite 显示问题 相机中的rendertarget转换到图片中显示不了 texture = camera.renderTarget as Texture; var sp:Sprite = new Sprite(); sp.x = 800; sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170510
...示例代码如下: ```javascript package { import laya.display.Sprite; import laya.display.Stage; public class Sprite_DrawShapes { private var sp:Sprite; public function Sprite_DrawShapes() ...
来源: Laya2.0_文档 发布时间: 20210715
...unction createMovieClip():void { bg = CreateObj.createSprite(McUrlMgr.LOAD_BG_Path); this.addChild(bg); bg.x = 0; bg.y = 0; var bg2:Sprite = CreateObj.createSprite(McUrlMgr....
来源: Laya_社区 发布时间: 20161223
...aya.Script3D{ public nGrade:number = 0; public nSpeed:number = 5; public sprite:Laya.Sprite3D = null; public animator:Laya.Animator = null; public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); } ...
来源: Laya_社区 发布时间: 20191026
...页效果移植过来。我发现LayaAir没有BitmapData的draw方法 var sprite_:Sprite = new Sprite(); var bitmap_:BitmapData = new BitmapData(_loader.width, _loader.height); bitmap_.draw(_loader, new Matrix()); var matrix:Matrix = new Matrix(); matrix.rotate(Math.PI/4); sprite_.graphics.beginBitm...
来源: Laya_社区 发布时间: 20170414