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

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

421. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 73%]

...毁 ```java package { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); L...

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

422. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 73%]

...毁 ```java package { import laya.display.Animation; import laya.display.Sprite; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); L...

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

423. 分享一个Shader版的CoolDown实现 [ 73%]

... Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- imp...

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

424. drawcall优化问题 [ 73%]

...es/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('comp/bg.png'); container.addChild(role); var ro...

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

425. laya.ui.Box [ 73%]

...ods | Events Packagelaya.uiClasspublic class BoxInheritanceBox Component Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, Tree, UIGroup, View, ViewStack Box 类是一个控件容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Pr...

来源: laya_api 发布时间: 20170929

426. laya.ui.TextInput_API3.0 [ 73%]

...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/TextInput.ts:118 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in ...

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

427. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 73%]

...d(testView); // //return; Laya.timer.once(3000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需求适当...

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

428. laya.ui.DialogManager [ 72%]

...nts Packagelaya.uiClasspublic class DialogManagerInheritanceDialogManager Sprite Node EventDispatcher Object DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意对话框打开和关闭,都会出发管理类的open和close事件 可以通...

来源: laya_api 发布时间: 20170929

429. 绳索关节RopeJoint如何给绳子添加具体的形象资源。 [ 72%]

...放问题 3d 添加灯光 模型变的黑呼呼的 很多黑面 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 编辑了图片 执行代码说加载出来资源 这个是怎么...

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

430. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 72%]

...cullingMask : 2147483647 destroyed : false enableRender : true name : "New Sprite3D" sky : SkyDome _bufferState : BufferState _bindedIndexBuffer : IndexBuffer3D _nativeVertexArrayObject : WebGLVertexArrayObjectOES __proto__ : BufferStateBase _indexBuffer : IndexBuffer3D _slices : 48 _stacks : 48 _ve...

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