大约有 2,792 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0110 秒)
Laya_社区(2262) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(52)
...宽度来显示的 示例代码export default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTMLDivElement(); this.htmlTxt.style.fon...
来源: Laya_社区 发布时间: 20210107
...ya.utils.Mouse; import laya.ui.Button; import laya.display.Sprite; import laya.display.Animation; import laya.maths.Rectangle; import laya.display.Stage; public class LayaUISample { private var skin:String = "https://layaair.ld...
来源: Laya_社区 发布时间: 20180725
...mouseover触发顺序不一致的问题! package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Mouse; /* 2或多个显示对象 鼠标移到显示对象上,呈现手型光标,移出呈现箭头,当鼠标快速在2个显示对象之间切换,会出现鼠标位于...
来源: Laya_社区 发布时间: 20170502
...0。 2.必须确保粒子文件加载完成后再去调整 缩放 var part:Sprite3D = scene.addChild(Sprite3D.load("part.lh")) as Sprite3D; part.once(Event.HIERARCHY_LOADED, this, function():void{ part.transform.localScale = new Vector3(3, 3, 3); }); 我按照这个调整粒子大小...
来源: Laya_社区 发布时间: 20180705
...骨骼的内容 /** * 可绑定到骨骼的内容(实现者必须是Laya.Sprite的子类) */ export interface IBindSource{ boneName:string; offestX:number; offestY:number; } 3.一个具体的可绑定内容实现 /** * 可绑定到骨骼槽的内容 */ export default class BindSource ex...
来源: Laya_社区 发布时间: 20190805
...景类了,此时该如何获得场景内的元素 关于遍历产生的sprite的点击事件,急,大神帮看哈 求指点3d射线碰撞和UI点击穿透的问题 如何设置Sprite的宽高和点击区域? 图片添加点击事件 有的不生效 问题状态 最新活动: 2018-01-24 19:03 ...
来源: Laya_社区 发布时间: 20161202
如果更换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
drawTexture 画出来的数据会有以前的数据 private var iconSpr:Sprite; private var htmlCanvas:HTMLCanvas; private var texture:Texture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640;...
来源: Laya_社区 发布时间: 20180113
... new RunGame(); // Laya.stage.addChild(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(texture, 0, 0, 96, 96); Laya.stage.addChild(sp); console.log(texture); } 这里大家可能有疑问 为什么...
来源: Laya_社区 发布时间: 20160801
...后用event.targe指向。layaair折腾半天,搞不明白image组件,sprite.loadImage,Laya.loader.load如果用for循环操作,响应事件中用什么方法指向事件的发起对象?原来用e.target和e.data。现在事件发起者和加载的数据怎么得到呢?(不用循环可...
来源: Laya_社区 发布时间: 20161023