大约有 1,107 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(734) Laya3.0_api(83) Laya2.0_api(71) laya_api(66) Laya_示例(41) Laya2.0_示例(39) Laya3.0_文档(37) Laya2.0_文档(36)
...录宽度 this.width_x = this.progress.width + 3; this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressvalue); this.progressvalue.mask = this.vmask; this.changevalue = function(value) { this.targe...
来源: Laya_社区 发布时间: 20180725
...着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stag...
来源: Laya_社区 发布时间: 20220815
...tobuff框架的游戏demo(TS版本或AS版本的) 关于遍历产生的sprite的点击事件,急,大神帮看哈 关于龙骨动画转换 问题状态 最新活动: 2017-08-30 20:14 浏览: 4430 关注: 4 人
来源: Laya_社区 发布时间: 20170830
...g"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__su...
来源: Laya_社区 发布时间: 20170920
...18 0 0 分享 微博 QZONE 微信 shaouXie 赞同来自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jpg"); Laya.stage.on(Laya.Event.RESIZE,this,onResize); function onResize() { var scale,scaleX,scaleY; scaleX = Browser.clientWidth/480; scaleY = Browser.clientHeight...
来源: Laya_社区 发布时间: 20161118
...隆对象,统计面板的显存和内存就会显示成负数 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 请教下微信小游戏的内存和数据缓存? 模型资源释放问题 2.0 beta4 ts 含demo 在纵向滑动 list 的 renderHandler中给item中的Label组件赋值...
来源: Laya_社区 发布时间: 20170224
...t.zOrder); //打印结果:10 最后运行时舞台上显示的是arr1(sprite)在target(sprite)之上。 但是在编缉器上显示是正常的。 arr1对象是运行时动态添加到舞台上的,是不是后面添加的永远会覆盖舞台上原有的对象?如果是请问合理吗...
来源: Laya_社区 发布时间: 20200326
为什么rotation、scale赋值了不管用? 我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作...
来源: Laya_社区 发布时间: 20180309
...r刚体自带的texture属性来设置图片,而是自定义了一个layaSprite来绑定到刚体上,再在layaSprite上添加几个子节点,每个子节点添加一张图片来达到我的需求。 现在的问题是,我通过循环创建了多个一样的刚体,然后把这些刚...
来源: Laya_社区 发布时间: 20180901
...是 “mouseout” 而不是 "mousedown" ? 代码如下: function createSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.w...
来源: Laya_社区 发布时间: 20181022