大约有 2,691 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0111 秒)
Laya_社区(2165) Laya2.0_文档(119) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(52)
为什么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
发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办? 发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办?复制出来的静态物件都会新...
来源: Laya_社区 发布时间: 20200612
sprite 的getBounds()方法怎么回事,我怎么获取不出来啊 其中list是一个view.list是一个列表可以获取getBounds(),但是test1和test2两张图片怎么回事,宽带都能打印出来就是获取不到getBounds(),获取出来都是0,这到底怎么回事 附...
来源: Laya_社区 发布时间: 20180118
...r刚体自带的texture属性来设置图片,而是自定义了一个layaSprite来绑定到刚体上,再在layaSprite上添加几个子节点,每个子节点添加一张图片来达到我的需求。 现在的问题是,我通过循环创建了多个一样的刚体,然后把这些刚...
来源: Laya_社区 发布时间: 20180901
... laya123 package huamao.layer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:...
来源: Laya_社区 发布时间: 20171124
... Air.__super.call(this); this.init(); } Laya.class(Air,"Air", laya.display.Sprite); var _proto = Air.prototype; _proto.init = function() { if(this.body == null) { this.body = new laya.display.Animation(); this.addChild(this.body) this.body.loadAnimation("GameRole.ani") } } _proto.playAction = functi...
来源: Laya_社区 发布时间: 20180911
... _graphics _graphics: AutoBitmap Inherited from Button._graphics Overrides Sprite._graphics Defined in laya/ui/Button.ts:212 _ownGraphics _ownGraphics: boolean = false Implementation of ISelect._ownGraphics Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Im...
来源: Laya3.0_api 发布时间: 20231115
...有的uniform属性 var uniformMap = { 'u_MvpMatrix': Laya.Shader3D.PERIOD_SPRITE, 'u_WorldMat': Laya.Shader3D.PERIOD_SPRITE }; //注册CustomShader var customShader = Laya.Shader3D.add("CustomShader"); //创建一个SubShader var subShader = new Laya.SubShader(attributeMap, uniformMap); //我们的...
来源: Laya2.0_文档 发布时间: 20210715
关于fillText问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,...
来源: Laya_社区 发布时间: 20180425
...= 0; _proto.onInit = function(){ this.guaSpr.cacheAs = "bitmap"; ape = new Sprite(); this.guaSpr.addChild(ape); ape.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(); interactionArea.blendMode = "destination-out"; ape.addChild(inter...
来源: Laya_社区 发布时间: 20170615