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

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

111. 多次加载一个页面出现_$P为null的情况 [ 66%]

...function OnlinePlaySence(data) {     OnlinePlaySence.super(this); } Laya.class(OnlinePlaySence, "OnlinePlaySence", BasePlaySenceUI);   附件 : --> 2017-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya...

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

112. IDE时间轴动画帧数乱序导致的bug [ 66%]

IDE时间轴动画帧数乱序导致的bug class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun === null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }   FrameAnimation初始化时_sortIndexFun 方法没有被赋值...

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

113. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 66%]

...t中使用本地能力 下面是一个推荐做法: //Script.ts @Laya.regClass() class Script extends Laya.Script { wantToUseNode() { EditorEnv.scene.runScript("TestSceneScript.visitNode"); } } //TestSceneScript.ts import fs from "fs"; //注意是IEditorEnv.regClass,不是Laya.regClass!! @IEdito...

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

114. 动画状态脚本(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 66%]

...pescript //继承自AnimatorStateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { constructor() { super(); this._text = null; } get text() { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ ...

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

115. fillTexture使用问题 [ 66%]

...exture是可以正常使用的,但是用fillTexture时无任何效果。 class Map extends laya.display.Sprite { static width: number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): voi...

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

116. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 66%]

...pescript //继承自AnimatorStateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { private _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始...

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

117. List翻页效果 [ 66%]

..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...

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

118. List翻页效果怎么实现 [ 65%]

..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...

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

119. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 65%]

...理引擎文档都是IDE篇的。   我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_clos...

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

120. 版本管理swf找同名的Json文件发现找不到 [ 65%]

...配的是Map192e06db1ff.json MovieClip类是找Map192622077fd.json export class MMovieClip extends Laya.MovieClip{         constructor(){             super();         }         //初始化预加载数据         public m_initData(url:string,atlas:boolean,a...

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