大约有 529 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)
发布ios,sprite无法设置宽高 在浏览器上可以运行,但是发布到ios端,场景无法显示,并且在其他项目中,new一个Sprite或者Image的时候,不能设置宽高,只能scale,这个demo只有一个场景,一张图片,但是在app上,黑屏,什么都没...
来源: Laya_社区 发布时间: 20190402
...显示? 求问shader中的attribute变量怎么动态修改 为什么给Sprite容器添加点击事件没反应 请问一下怎样动态加载prefab lh文件内meshSprite添加阴影属性无效 View嵌套Dialog组件 请问如何让textinput组件输入密码的时候显示*号? 3d 添加灯光...
来源: Laya_社区 发布时间: 20181023
...der.load("res/1.pkm", Handler.create(null, function():void { var spr:Sprite = new Sprite(); spr.loadImage("res/1.pkm"); spr.pos(100, 100); Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就是tp转的图片,这个是加载的代码 1.zip 2018-12-20 0 0 分享 微...
来源: Laya_社区 发布时间: 20181219
...这个问题要怎么改啊? 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
...同来自: 亲,我想问问你最后怎么解决的,我是在同一个sprite多次截图,发现截出来的图会有叠加情况 2018-01-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 leoganliang 相关问题 发起问题须知...
来源: Laya_社区 发布时间: 20170407
...llatlas = {}; var loadData = []; //var会声明提前 for (let key in pkg._sprites) { if (pkg._sprites.hasOwnProperty(key)) { let element = pkg._sprites[key]; if (!allatlas[element.atlas.file] && !Laya.loader.getRes(element.atlas.file)) { allatlas[element.atlas.file] = element.atlas.file; lo...
来源: Laya_社区 发布时间: 20191107
...mport laya.d3.core.particleShuriKen.module.StartFrame; import laya.display.Sprite; import ui.BGPageUI; import ui.MonkeyPageUI; public class Main { public function Main() { //根据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConf...
来源: Laya2.0_文档 发布时间: 20210714
...: 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
...ture: Laya.Texture = Laya.loader.getRes("magic/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp); //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform...
来源: Laya_社区 发布时间: 20180331
...ght:"+height); var tex = new BK.Texture(buff,width,height); var sp =new BK.Sprite(200,200,tex,0,1,1,1); BK.Director.root.addChild(sp); }else if(openID == openID2){ ... } } BK.MQQ.Account.getHead(openID1, callback); BK.MQQ.Account.getHead(openID2, callback); ========================================...
来源: Laya_社区 发布时间: 20180417