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

大约有 114 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)

91. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 54%]

...a.stage.bgColor = "#232628"; this.sp_video = new Laya.Sprite(); Laya.stage.addChild(this.sp_video);//添加到舞台 this.sp_video.pos(10,100); Laya.timer.loop(150, this, showframe); })(); function showframe() { var self = this; var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,com...

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

92. 关于大量图片加载绘制后的内存暴增的疑问 [ 53%]

...r.ATLAS); } private function onLoaded():void { sp=new Sprite(); Laya.stage.addChild(sp); //每隔0.05秒出现下张图片 Laya.timer.loop(50,this,onLoop); } private function onLoop():void { //更改texture的纹理,逐一显示不同的image chageTexture(); //如果texture有值,进行绘制并...

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

93. laya.display.Scene [ 52%]

...c Methods Show Inherited Public Methods MethodDefined By  Scene()Scene addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

来源: Laya2.0_api 发布时间: 20190513

94. laya.ui.Tree_API3.0 [ 49%]

... tree 的宽度。 tree.height = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this.name = "render"; this.right = 0; this.left = 0; va...

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

95. drawTexture 画出来的数据会有以前的数据 [ 45%]

...conSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private f...

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

96. 通用发布 · LayaAir3.0文档 · LAYABOX [ 43%]

... =>{ let sp3:Laya.Sprite3D =res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2","http://192.168.56.1:2840/",this.printProgress).then(()=>{ Laya.loader.load("sub2/sphere.lh").then((res:Laya.PrefabImpl) =>{ let sp3:Laya.Sprite3D =res.create() as La...

来源: Laya3.0_文档 发布时间: 20240926

97. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 42%]

...11384.png?lastModify=1551962708public init() {            Laya.stage.addChild(this);            //初始化list数据            if(Laya.Browser.onMiniGame){                //接受来自主域的信息                wx.onMessage(this.recevieData.bind(this));    ...

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

98. 2.12.2beta1 诸多bug [ 40%]

...LINK, this, (event: Laya.Event) => { console.log(event); }); Laya.stage.addChild(ele); zyy • 2021-11-09 13:51 @Laya_Fred: 这段代码 很简单 只是点击 输出 event 如果 把Laya.stage.y 向下调整 就会导致它点击区域错误 zyy • 2021-11-09 13:55 @Laya_Fred:而且Laya.stage.y...

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

99. laya.ui.Tree [ 40%]

...在 Tree 构造函数中设置属性width、height的值都为200。 Tree addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:A...

来源: laya_api 发布时间: 20170929

100. laya.ui.Tree [ 39%]

...在 Tree 构造函数中设置属性width、height的值都为200。 Tree addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

来源: Laya2.0_api 发布时间: 20190513