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

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

631. 关于Dialog的closeHandler问题 [ 91%]

...Other){ (closeOther===void 0)&& (closeOther=false); if (closeOther)this.removeChildren(); if (dialog.popupCenter)this._centerDialog(dialog); this.addChild(dialog); if (dialog.isModal || this._$P["hasZorder"])this.timer.callLater(this,this._checkMask); this.popupEffect && this.popupEf...

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

632. UI-Tab [ 91%]

...8"; Laya.stage.bgColor = "#3d3d3d"; Laya.loader.load(skins, Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { var tabA = createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB = createTab(skins[1]); tabB.pos(40, 220); tabB.labelColors = "#FF...

来源: Laya_示例 发布时间: 20251209

633. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 91%]

...ope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this....

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

634. 想用camera做一个类似照相机的功能 [ 91%]

...          //选择渲染目标为纹理             this.renderTargetCamera.renderTarget = new RenderTexture(Laya.stage.width, Laya.stage.height);             //渲染顺序             this.renderTargetCamera.renderingOrder = -1;         ...

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

635. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 91%]

...der.SPINE).then(() => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addComponent(Laya.Spine2DRenderNode); this.spine.source = "girl2/mix-and-match-pro.json"; // 设置Spine动画数据源 this.spine.skinName = "full-skins/girl"; // 设置皮肤名称 this.spine.play("i...

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

636. 性能测试-卡通人物 [ 91%]

....load("../../res/cartoonCharacters/cartoonCharactors.json", Handler.create(this, createCharacters), null, Loader.ATLAS); })(); function createCharacters() { characterGroup = []; for(var i = 0; i = 0; --i) { animateCharactor(characterGroup[i]); } } function animateCharactor(charactor) { charactor.x +...

来源: Laya_示例 发布时间: 20251209

637. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 91%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果** * **建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用runtime继承式写法,如果是独立小模块,功能单一,建议用...

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

638. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 91%]

...nd {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width...

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

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

...{ htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmet...

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

640. 论坛的简单跑酷地板间距疑问 [ 91%]

...给予指导 关于增加地板,新地板产生条件是前一个旧地板(this.x + this.width) < this.maxRight,this.x初始都是852,是正数,this.width是旧地板宽度也是正数,所以只有当前一个旧地板的this.x等于负值时等式才会成立,也就是前一个旧地...

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