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

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

941. 新人求教!!! [ 53%]

...    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(this.img);    //显示初始化绘制的图片    this.switchImg();    //侦听switchImg中图片区域的点击事件,触发后执行switchImg切换纹理绘制    this.img.on("click",this,this.switchImg);...

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

942. laya.ui.ScrollBar_API3.0 [ 53%]

...wport visible width x y zOrder Methods _initialize _processActive _setSkin addChild addChildAt addChildren addComponent addComponentInstance backToNormal bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnc...

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

943. unity中的模型导出后在laya中显示正常 [ 53%]

...也可以继续在laya中对camera进行操作: var scene = Laya.stage.addChild(Laya.Scene.load("res/layaScene.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function (sceneTemp) { var camera = sceneTemp.getChildByName("Main Camera"); camera.transform.translate(new Laya.Vector3(0, 0, 200)); ...

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

944. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 53%]

...to-generated method stub var bitmap:Bitmap=event.target.content as Bitmap; addChild(bitmap); l.contentLoaderInfo.removeEventListener(Event.COMPLETE,onImage2Loaded); l=null; } } }as下输出true js下输出false 2015-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

945. 视频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...ake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage.addChild(video); video.pos(200,200); //设置位置 video.source = "resources/layaAir.mp4"; //设置视频源文件 video.play(); //开始播放 } } Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更...

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

946. mac平台1.7.20.2beta版本下compileTargets设置生效 [ 53%]

...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } }  2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets> 3. 运行后依然编译执行默认生成的LayaSamples.as 2018-09-14...

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

947. Laya3d加载Arena/Arena.ls报错 [ 53%]

...= LayaScene.load("res/scene/Arena/Arena.ls");             Laya.stage.addChild(scene);             // Log.Info("Procedure::setup");             // this.InitGameManager();         } 2017-08-03 0 0 分享 微博 QZONE 微信 oayx 赞同来自: 创建的是空项目 2017-08-03 0 0 ...

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

948. Dragonbones龙骨动画 播放同动作出现闪烁 混乱 [ 53%]

....emoji = this.skeleton.getAniNameByIndex(0); } this.play(this.emoji); this.addChild(this.skeleton); this.show(); if (this.completeHandler) { this.completeHandler.runWith(this); } } //改变表情 public changeEmoji(emoji:string):void{ if (emoji) { this.emoji=emoji; } if (!this.emojiArr || !this.emoj...

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

949. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 53%]

...,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this....

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

950. laya.ui.Slider_API3.0 [ 53%]

...wport visible width x y zOrder Methods _initialize _processActive _setSkin addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout...

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