大约有 1,011 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(717) Laya3.0_api(68) Laya2.0_api(59) laya_api(56) Laya2.0_文档(47) Laya3.0_文档(27) Laya_示例(27) Laya2.0_示例(10)
Matter和Sprite绑定后图片移位问题 代码: var ball_skin = new Laya.Sprite().loadImage("img/hero.png"); ball_skin.scale(50/120, 80/178); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); var ball = Matter.Bodies.rectangle(330, ...
来源: Laya_社区 发布时间: 20170721
...赞同来自: 人月成患 您好,将下图中圈起来的的属性改为Sprite Texture试试呢,如果还有问题最好传一份示例到社区,我们来看下。 2023-02-17 1 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 人...
来源: Laya_社区 发布时间: 20230217
...ackagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Public Properties Hide Inherited Public Properties Show Inher...
来源: Laya2.0_api 发布时间: 20190513
...kagelaya.html.domClasspublic class HTMLDivElementInheritanceHTMLDivElement Sprite Node EventDispatcher ObjectSubclasses HTMLIframeElement HTML图文类,用于显示html内容 支持的标签如下: a:链接标签,点击后会派发"link"事件 比如:a div:div容器标签,比如: span:行内...
来源: Laya2.0_api 发布时间: 20190513
...cumentationAll Packages | All Classes | Index | Frames No Frames GridSpriteProperties | Methods | Events Packagelaya.mapClasspublic class GridSpriteInheritanceGridSprite Sprite Node EventDispatcher Object 地图的每层都会分块渲染处理 本类就是地图的块数据 Public Properti...
来源: Laya2.0_api 发布时间: 20190513
...示? Dialog:屏蔽点击Dialog之外的区域关闭弹框 matter中layasprite怎么改变图片大小? 关于遍历产生的sprite的点击事件,急,大神帮看哈 如何设置Sprite的宽高和点击区域? Texture图片能否进行翻转? 救命!canvas定位后 点击区域偏移...
来源: Laya_社区 发布时间: 20180731
laya的sprite或其他物体能否叠加在一个dom上(比如image或video) 2017-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: LayaAir是基于canvas的操作,layaAir下的s...
来源: Laya_社区 发布时间: 20170823
...s | Events Packagelaya.uiClasspublic class BoxInheritanceBox UIComponent Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, ScaleBox, Tree, UIGroup, ViewStack Box 类是一个控件容器类。 Public Properties Hide Inherited Public Properties Show Inherited Publi...
来源: Laya2.0_api 发布时间: 20190513
Sprite缩放图片后 Matter的layaSprite显示不正常 不缩放就正常 Sprite缩放图片后 Matter的layaSprite显示不正常 不缩放就显示正常 代码 效果可以看到 图片分离了 固定在那不动 附件 : --> 2017-07-28 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170728
使用loadImage加载一个图片后的点击事件 var Sprite = Laya.Sprite; var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage(img,360, 300, 60, 60, Laya.Handler.create(this, function(){ ape.on(Laya.Event.CLICK, this, function(){ console.log(111) }) }));...
来源: Laya_社区 发布时间: 20180609