• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 727 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0088 秒)

121. 新手,怎么也找不到关于laya.ui的教程? [ 80%]

...屏幕自适应方面的吗,有具体的教程吗?? laya.ui.Image和Sprite的区别? laya.ui.View的具体作用?怎么也找不到关于View的教程。对于新手有关于laya.ui的教程或者代码例子吗? 2017-04-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

来源: Laya_社区 发布时间: 20170413

122. 发布ios,sprite无法设置宽高 [ 80%]

发布ios,sprite无法设置宽高 在浏览器上可以运行,但是发布到ios端,场景无法显示,并且在其他项目中,new一个Sprite或者Image的时候,不能设置宽高,只能scale,这个demo只有一个场景,一张图片,但是在app上,黑屏,什么都没...

来源: Laya_社区 发布时间: 20190402

123. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 79%]

...{ constructor() { //初始化引擎 Laya.init(1136,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(d...

来源: Laya2.0_文档 发布时间: 20210714

124. JS进度条加载问题 [ 79%]

...oLoaded),null,true,true); } function showProgress() { progressBar=new Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChi...

来源: Laya_社区 发布时间: 20170701

125. 问一下这个问题要怎么改啊? [ 79%]

...这个问题要怎么改啊? appPic.as   package { import laya.display.Sprite; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public function addPic...

来源: Laya_社区 发布时间: 20170522

126. 为什么hitTestPoint始终是false? [ 79%]

为什么hitTestPoint始终是false? class TestUI extends Laya.Sprite { private s:Laya.Sprite = new Laya.Sprite(); constructor() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } priv...

来源: Laya_社区 发布时间: 20170319

127. matter中layasprite怎么改变图片大小? [ 79%]

matter中layasprite怎么改变图片大小?   var roleOptions: any = {mass:1, restitution:0.8, layaSprite: sprite}; var role: any = Matter.Bodies.rectangle(180, 450, 334, 522, roleOptions);   代码类似这样的:sprite是我传入的图片,要怎么改变这张图片的大小? 2018-08-...

来源: Laya_社区 发布时间: 20180827

128. 关于HTMLCanvas对象的释放问题 [ 79%]

...同来自: 亲,我想问问你最后怎么解决的,我是在同一个sprite多次截图,发现截出来的图会有叠加情况 2018-01-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 leoganliang 相关问题 发起问题须知...

来源: Laya_社区 发布时间: 20170407

129. laya.ui.Dialog_API3.0 [ 79%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _scene3D _scene3D: any Inherited from Scene._scene3D Defined in laya/display/Scene.ts:28 _skinBaseUrl _skinBaseUrl: string Inher...

来源: Laya3.0_api 发布时间: 20231115

130. 升级到3.0-beta6无法选择资源了 [ 79%]

... export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;      constructor() {         super();     } } 附件 : --> 2023-04-12 添加评...

来源: Laya_社区 发布时间: 20230412