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

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

881. 发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办? [ 69%]

发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办? 发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加不会合批,这个怎么办?复制出来的静态物件都会新...

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

882. 刚体贴图调用问题 [ 69%]

...r刚体自带的texture属性来设置图片,而是自定义了一个layaSprite来绑定到刚体上,再在layaSprite上添加几个子节点,每个子节点添加一张图片来达到我的需求。    现在的问题是,我通过循环创建了多个一样的刚体,然后把这些刚...

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

883. laya.ui.Radio_API3.0 [ 69%]

... _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

884. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 69%]

... 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

885. 关于fillText问题 [ 69%]

关于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

886. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 69%]

... 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

887. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 69%]

...有的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

888. 刮刮卡效果实现 [ 69%]

...= 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

889. 2.0UI的生命周期感觉有问题 [ 69%]

...Request感觉没有发成功 斜角透视的感觉怎么弄出来呀?? Sprite中的width,height和size(width,height)感觉没作用啊 layabox2d例子,虽然出来效果,但是总感觉跟laya挂钩不上。 关于动画模板 除了官网的介绍有没有什么比较好的 实例 ...

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

890. 真机上随机报错 [ 69%]

...3D._cloneTo (http://222222.com/libs/laya.d3.js:24966:34) at Function._parseSprite3DInstance (http://222222.com/libs/laya.d3.js:6954:20) at Function._parseSprite3DInstance (http://2222.com/libs/laya.d3.js:6953:23) at Function._parseSprite3DInstance (http://22 2021-12-01 17:08:49.363 11766-11918/? E/L...

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