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

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

81. 水平滑动条组件 · LayaAir3.0文档 · LAYABOX [ 66%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HSlider }) public hslider: Laya.HSlider; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hslider.pos(300,...

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

82. 1.76beta引擎库的BUG:Laya.List动态载入后,滑动时会将list框本身的滑动区域一并向滑动方向移动,会出现点击list中空白区域就无法滑动的情况 [ 66%]

... 2017-06-14 0 2 分享 微博 QZONE 微信 fundge 赞同来自: class List extends ui.UI_ListUI {     test: Array<number> = [];     constructor()     {         super();         this.list.vScrollBarSkin = '';         this.list.itemRender = Item_List;         this.list.rend...

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

83. 基础文本 · LayaAir3.0文档 · LAYABOX [ 65%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): voi...

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

84. laya.ui.IBox [ 65%]

...ex | Frames No Frames IBox Packagelaya.uiInterfacepublic interface IBox extends IComponentImplementors Box容器接口,实现了编辑器容器类型。Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By comXml : Object XML 数据。 ICompone...

来源: laya_api 发布时间: 20170929

85. laya.display.GraphicAnimation [ 65%]

...lare module laya.editorUI { /** * Graphics解析器 */ class GraphicParser extends laya.display.GraphicAnimation { protected _getTextureByUrl(url: string): string; static parseAnimationData(aniData: any): any; } } 2020-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

86. Sprite鼠标事件不响应 [ 65%]

Sprite鼠标事件不响应  public class LandLayer extends Sprite    给LandLayer 添加了鼠标事件 然而并没有响应…… 看图…… 2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi1...

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

87. laya.filters.IFilterActionGL [ 65%]

...s | Methods Packagelaya.filtersInterfacepublic interface IFilterActionGL extends IFilterActionImplementors ColorFilterActionGL, FilterActionGLPublic Properties PropertyDefined By  typeMix : int[read-only] IFilterActionGLPublic Methods Hide Inherited Public Methods Show Inherited Public Methods...

来源: laya_api 发布时间: 20170929

88. 复杂UI类卸载 [ 64%]

复杂UI类卸载 class GameUI extends View{ container:Laya.Sprite; img1:Laya.Image; anim1:Laya.Animation; ... }, 类似这样的复杂UI类,里面包含了各种类型的组件,当需要卸载GameUI类的时候,gameUI.removeSelf();gameUI.destroy(true);gameUI = null ,用这种方式是否可行...

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

89. 输入设备-贪吃蛇(重力感应) [ 64%]

...stage.width; food.y = Math.random() * Laya.stage.height; } } class Segment extends Laya.Sprite { constructor(width, height) { super(); this.size(width, height); this.init(); } init() { this.graphics.drawRect(-this.height / 2, -this.height / 2, this.width + this.height, this.height, "#FF7F50"); } // ...

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

90. 突然laya IDE添加组件时报错,并卡死 [ 64%]

...ya_Yan 赞同来自: 是不是多层继承,是的话在脚本内添加 //extends Laya.Script的注释就可以了 2021-12-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 峻郡 相关问题 看了其他引擎才发现 LAYA 真的太...

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