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

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

401. getCharPoint的bug [ 53%]

...了,取消加1,而是在下面添这几句:                 const lastChar = this._text[len];                 if ('\n' === lastChar || '\r' === lastChar)                     ++len; 别看就这么点东西,中间折腾好几次,费了我可能有两个钟头,这...

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

402. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 53%]

[LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {   testData = new Laya.Vector3(1, 1, 1);   @property(Laya.Camera)   camera: Laya.Camera;    onStart() {     //@ts-ignore     window...

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

403. Sprite-新手引导 [ 53%]

...nteractionArea, hitArea, tipContainer, guideStep = 0; class Sprite_Guide { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(1285, 727, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.s...

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

404. Native1.0.1 无法连接wss [ 53%]

...ive1.0.1 无法连接wss 如题, Naitve无法连接wss 示例代码如下: const url = "wss://xxx.com:8888"; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonne...

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

405. TypeError: Cannot read property '_layer' of null; at Function.FrustumCulling.renderObjectCulling [ 53%]

...请: 与内容相关的链接 提交 1 个回复 12345老虎 赞同来自: const这个不是定义不可变么 2019-01-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 shadow 相关问题 laya2.0加载3d场景报错Uncaught TypeError: C...

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

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

...口中。下面给出一个示例代码,实现脚本控制TextInput: const { 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

407. laya.ui.Dialog [ 52%]

...es | Index | Frames No Frames DialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class DialogInheritanceDialog View Scene Sprite Node EventDispatcher Object Dialog 组件是一个弹出对话框,实现对话框弹出,拖动,模式窗口功能。 可以通过UICon...

来源: Laya2.0_api 发布时间: 20190513

408. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...中。需要添加如下的示例代码,实现脚本控制RadioGroup: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.RadioGroup }) public radiogroup: Laya.RadioGroup; //组件被激活后执行,此时所有节点和组件均...

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

409. 怎么获取完全限定类名,就像as的getQualifiedClassName [ 52%]

...3667 赞同来自: 只限基于ActionScript的项目,基于ts的嗝屁  const a = new Laya.Event() Laya.__classmap['laya.events.Event'] == a.constructor //true   2017-08-10 0 0 分享 微博 QZONE 微信 宇智波 旋 赞同来自: /**返回指定对象的完全限定名 */ static getQualifiedCl...

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

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

...2D预制体的根节点上添加Runtime类,添加逻辑代码如下: const { regClass } = Laya; import { BloodBarBase } from "./BloodBar.generated"; import { Main } from "./Main"; @regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = ...

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