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

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

201. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...用于描述加载进度。需要添加如下的示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ProgressBar }) public progressBar: Laya.ProgressBar; @property({ type: Laya.Text }) public loadText: Laya.Text; //组...

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

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

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

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

203. 性能测试-卡通人物2 [ 59%]

...= Laya.WebGL; var Sprite = Laya.Sprite; var Animation = Laya.Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation...

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

204. 为什么全局属性赋值后,在另外个函数中调用会自动变成undefined [ 59%]

...性赋值后,在另外个函数中调用会自动变成undefined public class MainPageController extends Scene {                  public var camera:Camera;                  public function MainPageController(){             super();            ...

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

205. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 59%]

...响事件的触发这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console....

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

206. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 59%]

...响事件的触发这里是随便取的名。 ```typescript export default class SceneScript extends Laya.Script3D { //用于表现的方法 public showMsgFunc; constructor(){ super(); } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("S...

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

207. List组件拖动浏览时item会出现重叠的现象 [ 59%]

...叠的现象 module list.datasource { import List = laya.ui.List; export class ListDataSourceMediator { constructor() { } public setUp():void { var list: List = new List(); // 渲染的item list.itemRender = ListDataSourceItem; // 设置行列显示的item个数 list.repeatX = 1; list.repeatY = 4; /...

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

208. 使用了destroy()之后,还需要手动移除侦听事件和引用吗? [ 58%]

...说的很详细:https://layaair.ldc.layabox.com/api/?category=Core&class=laya.display.Node 下边两个文档可以先看AS里边的,js和ts缺少的后续我们会补充上。谢谢反馈 2017-09-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

209. 性能测试-卡通人物2 [ 58%]

...= [character1, character2, character3, character4], characters = [], text; class PerformanceTest_Cartoon2 { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Text = Laya.Text; // 不支持WebGL时自动切换至Canvas Laya...

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

210. 多重遮罩显示异常 [ 58%]

...,要么显示一部分或者消失,测试代码如下 export default class ClipView extends Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width ...

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