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

大约有 836 项符合查询结果, 库内数据总量为 14,848 项。 (搜索耗时: 0.0121 秒)

531. 使用了destroy()之后,还需要手动移除侦听事件和引用吗? [ 51%]

...说的很详细:https://layaair.ldc.layabox.com/api/?category=Core&class=laya.display.Node 下边两个文档可以先看AS里边的,js和ts缺少的后续我们会补充上。谢谢反馈 2017-09-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

532. laya.resource.Texture [ 51%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher ObjectSubclasses RenderTarget2D Texture 是一个纹理处理类。 Public Properties PropertyDefined...

来源: laya_api 发布时间: 20170929

533. spine动画放大后,遮罩显示不正常 [ 51%]

...置见下图代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //...

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

534. laya.d3.core.scene.ITreeNode [ 51%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ITreeNodeMethods Packagelaya.d3.core.sceneInterfacepublic interface ITreeNodeImplementors OctreeNode ... Public Methods  MethodDefined By  addTreeNode(renderObj:BaseRender):voidITreeNode  cullingObjects(boundFrustum:...

来源: laya_api 发布时间: 20170929

535. movieClip stop 没有用 [ 51%]

... package { import laya.ani.swf.MovieClip; import laya.events.Event; public class DragonMaskDemo { public function DragonMaskDemo() { Laya.init(550, 300); swfPlay(); } private function swfPlay():void { var mc:MovieClip=new MovieClip(); mc.load('reset.swf'); mc.on(Event.LOADED,this,onLoaded,[mc]); Lay...

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

536. 分享:如何用代码创建自定义Tab组件 [ 50%]

... laya.ui.Tab; import laya.utils.Browser; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; //预加载button的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this...

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

537. laya.maths.Rectangle [ 50%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RectangleProperties | Methods | Constants Packagelaya.mathsClasspublic class RectangleInheritanceRectangle Object Rectangle 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区...

来源: laya_api 发布时间: 20170929

538. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 50%]

new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor class GameMain{ private tMap:Laya.TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/Mari...

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

539. 如何过滤拥有相同name的节点对象? [ 50%]

...储和使用 简单示例: package { import laya.display.Sprite; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(550,400); var box:Sprite=new Sprite(); var sp1:Sprite=new Sprite(); sp1.name="aaa"; var sp2:Sprite=new Sprite(); sp2.name="aaa"; var sp3:Sprite=new Sprite(); sp3.na...

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

540. Laya.Script _start和_update以及_lateupdate不执行是什么原因呢? [ 50%]

...a.Script _start和_update以及_lateupdate不执行是什么原因呢?  class b extends Laya.Script{    _initialize(owner:Laya.Sprite3D){      super._initialize(owner);      //加打印可以执行    }        _start(state:Laya.RenderState):void{       //加打印不执行    ...

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