大约有 1,363 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1071) Laya3.0_api(81) Laya2.0_api(57) laya_api(53) Laya2.0_文档(50) Laya3.0_文档(38) Laya2.0_示例(7) Laya_示例(6)
...加自定义模型 //this.box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){ //Laya.Sprite3D.load("res/layatest...
来源: Laya_社区 发布时间: 20190514
...很吃力 文档也没解释 按照自己的理解应该就是要截屏的sprite的一个宽度和高度,但截出来竟然什么都没有,究竟是相对于什么的偏移量 天啊 2018-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20180719
Laya.Sprite3D 如何获取该对象的名称 Laya.Sprite3D 如何获取该对象的名称 2018-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 没有name 属性吗? 2018-09-03 0 0 ...
来源: Laya_社区 发布时间: 20180829
...是一样的呀 sckay • 2018-02-09 16:44 @Laya_Aaron: //方案一: var s:Sprite = new Sprite(); s.graphics.setAlpha(0.3); s.graphics.drawRect(0,0,300,300,"#ffffff"); s.graphics.setAlpha(1); addChild(s); var img:Image = new Image("a.png"); s.addChild(img); //方案二: var s:Spr...
来源: Laya_社区 发布时间: 20180209
graphics如何实现橡皮擦效果 // 增加一个容器 var box = new Sprite(); // 设置容器为画布缓存 box.cacheAs = "bitmap"; this.layCanvas.addChild(box); // 绘制红色方块 var red = new Sprite(); red.graphics.drawRect(0, 0, 150, 150, "#ff0000"); box.addChild(red); // 绘制一个...
来源: Laya_社区 发布时间: 20170707
...2:使用graphics.drawTexture的方式】 package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { private var sp:Sprite; public function LayaAirDemo() { Laya.init(800,600); sp=new Spr...
来源: Laya_社区 发布时间: 20170628
...骨骼的内容 /** * 可绑定到骨骼的内容(实现者必须是Laya.Sprite的子类) */ export interface IBindSource{ boneName:string; offestX:number; offestY:number; } 3.一个具体的可绑定内容实现 /** * 可绑定到骨骼槽的内容 */ export default class BindSource ex...
来源: Laya_社区 发布时间: 20190805
如果更换Sprite图片 statusBar = new Sprite(); statusBar.loadImage("7seedkin220161218094632691ru.png@120w.png",0,0, 60,60); statusBar.x = 20; statusBar.y = -70; this.addChild(statusBar); 如何通过动态事件更换Sprite图片? 2017-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170112
...我将地面 var mat: Laya.StandardMaterial = (this.floor.getChildAt(0) as Sprite3D).meshRender.material as Laya.StandardMaterial; mat.ambientColor = new Vector3(0.5,0.5,0.5); 这样确实阴影变淡了,可地面也变色了。。。怎么办?我只要阴影变淡,不想其它的变色 2018-0...
来源: Laya_社区 发布时间: 20180320
...复过我 你给我的那个连接 也是我发的 但是有问题 我new sprite 然后 添加一个list 然后 sprite设置rotation = 180 那么你滑动list就是反向的了 你给我的连接 那个例子 角度 不是180根本发现不了问题 如果你把sprite的rotation设置成90 那么上...
来源: Laya_社区 发布时间: 20180119