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

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

101. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...t { regClass, property } = Laya; @regClass() export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建...

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

102. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 61%]

...ild(this.text); } } //激活启动类 new MultiTouch(); class MonkeyScript extends Laya.Script3D{     private _scene:Laya.Scene3D;     private _text:Laya.Text;     private _camera:Laya.Camera;     private rotation:Laya.Vector3;     private lastPosition:Laya.Vector2;     priva...

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

103. mac的2.0.0 beta3版本场景添加脚本为组件报错 [ 61%]

...为组件报错 报一个窗口提示:    export default class Start extends Laya.Script { constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 */ onAwake(): void {  }  /** * 第一次执行update之前执行,只...

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

104. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

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

105. LAYABOX读取贴图的时候 是否可以更改 列如 UNITY 里的 Filter Mode 采样模式 [ 61%]

...关的链接 提交 1 个回复 Laya_Aaron 赞同来自: class BaseTexture extends Bitmap { static WARPMODE_REPEAT: number = 0; static WARPMODE_CLAMP: number = 1;  /**寻址模式_重复。*/ static FILTERMODE_POINT: number = 0; /**寻址模式_不循环。*/ static FILTERMODE_BILINEAR: number = 1;...

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

106. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...例如下: const { regClass } = Laya; @regClass() export class NewScript extends Laya.Script { //被添加到节点后调用,和Awake不同的是即使节点未激活onAdded也会调用 onAdded(): void { console.log("Game onAdded"); } //组件被激活后执行,此时所有节点和组件均...

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

107. MovieClip is not a constructor [ 61%]

...Laya.Sprite; import MovieClip=Laya.MovieClip; export class SpriteSheetTest extends Sprite{ constructor() { super(); let mc:MovieClip=new MovieClip(); } } 就这点代码,运行后就报错 2017-07-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被...

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

108. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...nerated"; import { Main } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.va...

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

109. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

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

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

110. 导航标签组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

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

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