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

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

271. laya.ui.Label_API3.0 [ 37%]

... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...

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

272. 性能统计与优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...调出性能统计面板。 示例Demo.ts编写代码如下: //初始化舞台 Laya.init(1136, 640); //调用性能统计面板方法,(0,0)为面板位置坐标 Laya.Stat.show(0,0); Tips:要注意大小写。 2、FPS相关的介绍 2.1 FPS概述 FPS是每秒传输帧数(Frames Per Second)的缩...

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

273. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...角为基准进行定位的。 轴心点是基准点,决定着Sprite在舞台的位置。轴心点以像素为单位,默认X、Y坐标为(0,0)表示图片左上角作为基准点。当修改了Sprite对象设置默认轴心点,对Sprite对象设置位置Position、缩放Scale、旋转Rotation...

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

274. laya.ui.Button_API3.0 [ 33%]

... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage stateNum get stateNum(): number set stateNum(value: number): void Defined in laya/ui/Button.ts:351 指定对象的状态值,以数字表示。 默认值为3。此值决定皮肤资源...

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

275. laya.ui.CheckBox_API3.0 [ 33%]

... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage stateNum get stateNum(): number set stateNum(value: number): void Inherited from Button.stateNum Defined in laya/ui/Button.ts:351 指定对象的状态值,以数字表示。 默认值...

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

276. laya.ui.Radio_API3.0 [ 33%]

... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage stateNum get stateNum(): number set stateNum(value: number): void Inherited from Button.stateNum Defined in laya/ui/Button.ts:351 指定对象的状态值,以数字表示。 默认值...

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

277. laya.ui.TextInput_API3.0 [ 32%]

... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...

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

278. laya.ui.TextArea_API3.0 [ 32%]

... Stage Inherited from Text.stage Defined in laya/display/Sprite.ts:1656 对舞台 stage 的引用。 Returns Stage staticCache get staticCache(): boolean set staticCache(value: boolean): void Inherited from Text.staticCache Defined in laya/display/Sprite.ts:389 设置cacheAs为非空时此值才有...

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

279. WebSocket通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

... socket: Laya.Socket; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { this.socket = new Laya.Socket(); // 注册事件监听 this.socket.on(Laya.Event.OPEN, this, this.onSocketOpen); this.socket.on(Laya.Event.MESSAGE, this, this.onMessageReceived); this.socket.on(La...

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

280. 3D概念入门 · LayaAir3.4 · 引擎文档 · LAYABOX [ 28%]

...摄像机。 (图1-1) 当我们在写3D游戏的代码时,要先在舞台中添加3D场景,添加3D摄像机。再写其它代码。 摄像机在3D场景中,可以是唯一的,也可以放置多台摄像机,比如,在图1-2的3D场景中出现的弹窗换装面板,或者某些对...

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