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

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

161. laya.ui.TextArea_API3.0 [ 41%]

...ui.TextArea; import Handler = laya.utils.Handler; class TextArea_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, this.onLoadComp...

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

162. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...tends Laya.Script { @property({ type: Laya.Sprite3D }) sp3: Laya.Sprite3D; constructor() { super(); } onEnable() { console.log("Game onStart", this.sp3.name); } } 除非有特别的需求,我们并不建议这样做,一方面是因为静态物体更有利于IDE内进行编辑。另一方面是...

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

163. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 34%]

... /** 数据*/         public static DATA: string = "data";         constructor(decorate?:Decorate) {             super();             this.mDecorate = decorate || new Decorate(this);             this.pomelo = new Pomelo();             this.configuration();        ...

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

164. 时间轴动画 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

...export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动画,看看运行结果: (图10-4) Copyright ...

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