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

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

921. 骨骼动画-橡胶人 [ 43%]

...ure = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Event.STOPPED, this, this.completeHandler); this.play(); } completeHandler() { this.play(); } play() { mCurrIndex++; let aniNum = mArmature.getAnimNum(); if (m...

来源: Laya2.0_示例 发布时间: 20251209

922. laya.ui.View_API3.0 [ 43%]

...Closed onDestroy onDisable onEnable onOpened once open parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_dataSource set_height set_sc...

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

923. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...d(); }); } // 配置精灵灯光 setSpriteLight(): void { this.spriteLight.pos(100,350); let spritelightComponent = this.spriteLight.getComponent(Laya.SpriteLight2D); spritelightComponent.color = new Laya.Color(1, 1, 1); spritelightComponent.intensity = 0.5; let tex = Laya.loader.getRes("resources/s...

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

924. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 43%]

...mage.texture = new Laya.Texture(videoTexTure); this.addChild(image); image.pos(100,100); }); 2024-03-04 1 1 分享 微博 QZONE 微信 phhh 赞同来自: 2d播放视频要事件触发 2023-08-25 0 1 分享 微博 QZONE 微信 木易楊 赞同来自: 尝试过是否是微信限制需要点击在播...

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

925. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...一次 onAwake(): void { let radio: Laya.Radio = new Laya.Radio(); radio.pos(200, 200); radio.size(160, 64); radio.stateNum = 3; radio.selected = false; radio.skin = "atlas/comp/radio.png"; radio.label = "LayaAir"; radio.labelSize = 20; radio.labelBold = true; radio.labelVAlign = "top"; this.owner.a...

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

926. laya.ui.RadioGroup_API3.0 [ 43%]

...p();//创建一个 RadioGroup 类的实例对象 radioGroup 。 radioGroup.pos(100, 100);//设置 radioGroup 的位置信息。 radioGroup.labels = "item0,item1,item2";//设置 radioGroup 的标签集。 radioGroup.skin = "resource/ui/radio.png";//设置 radioGroup 的皮肤。 radioGroup.space = 10...

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

927. LayaAir下TTF字体的使用方式? [ 43%]

...ext.text="哈哈哈哈哈哈哈哈哈哈哈哈哈哈"; text.font="hu" text.pos(600,600); Laya.stage.addChild(text); Laya.timer.once(1000,this,onLoop); } private function onLoop():void { var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="嘻嘻嘻嘻嘻"; text.font="hu" Laya...

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

928. laya.ui.Slider_API3.0 [ 43%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds setSlider set_anchorX set_anchorY set_bottom set_dataSou...

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

929. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 43%]

...ure.video.videoWidth; image.height = videoTexture.video.videoHeight; image.pos(100,100); Laya.stage.addChild(image); //目前LayaAir2.0引擎暂时没有提供刷新纹理机制,需要手动刷新。或者你可以试用LayaAir3.0引擎,那边实现videoTexture不用自己手动刷新 Laya.timer...

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

930. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 43%]

...templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private function onError(): void{ trace("parse error"); } private function play(...

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