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

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

671. laya.device.media.Video_API3.0 [ 62%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize duration ended error filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY muted numChildren parent paused pivotX pivotY playbackRa...

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

672. laya.ui.Tab_API3.0 [ 62%]

...ion Tab_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var tab:Tab = new Tab();/...

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

673. 微信小游戏加载资源问题 [ 62%]

...aya.Browser.container.appendChild(Laya.Input['inputContainer']); Laya.Laya.stage.on("resize", null, MiniInput._onStageResize); MiniAdpter.window.wx.onWindowResize && MiniAdpter.window.wx.onWindowResize(function (res) { }); Laya.SoundManager._soundClass = MiniSound; Laya.SoundManage...

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

674. 骨骼Label事件,多接收一次 [ 62%]

...ource.getSpineResource("ani/role/1/1.sk").buildArmature(1); Laya.stage.addChild(ske); let info:any = ske.templet.eventAniArr ske.x = 100; ske.y = 100; CUtil.Log(ske.getAniNameByIndex(0)) ske.play("atk",false) ske.on(Laya.Event.LABEL,this,function(e:any) { CUtil.Log("发动...

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

675. 一个关于getPixels的问题 [ 62%]

...ext(); txt.pos(200, 200); txt.color = "#FFFFFF"; txt.text = "000000"; Laya.stage.addChild(txt);  var spr = new Sprite(); spr.size(50, 50); Laya.stage.addChild(spr);  spr.texture = "images/circle.png";  txt.text = spr.texture.getPixels(25,25,1,1);希望通过使用getPixels方法使txt的文本内...

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

676. 播放视频只有声音没有图像 [ 62%]

....pos(0, 0); reference.size('100%', '100%'); this.addChild(reference); Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement,reference,0, 0,'100%','100%']); Laya.Utils.fitDOMElementInArea(videoElement,reference,0, 0,'100%','100%') } } 2018-11-24 添加评论 免费帖 -...

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

677. Laya1.6.2发布flash版本 [ 62%]

...Sprite$/_initRenderFun() at laya.display::Sprite/render() at laya.display::Stage/render() at laya.display::Stage/_loop() at laya.renders::Render/_enterFrame()然后尝试用graphics直接绘制图形,绘制了一个星星,可以运行   之后做了各种尝试,总之貌似需要载入图片...

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

678. discard property,please use transform's property instead [ 62%]

...    Laya3D.init(0, 0, true);         //适配模式         Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;         Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;         //开启统计信息         Laya.Stat.show();         var scene = Laya.stage.addChild(new Laya.Scene())...

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

679. laya.display.Scene_API3.0 [ 62%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scene3D s...

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

680. laya.ui.Box_API3.0 [ 62%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scro...

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