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

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

1571. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

... input.y = i * this.SPACING + this.Y_OFFSET; } } private createInput(skin: string): Laya.TextInput { var ti: Laya.TextInput = new Laya.TextInput(); ti.skin = skin; ti.size(300, 50); ti.sizeGrid = "0,40,0,40"; ti.font = "Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; this.owner.addCh...

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

1572. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...显示这个img。我们新建个项目。代码如下所示: var data: string = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:4...

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

1573. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 35%]

...销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResour...

来源: Laya2.0_文档 发布时间: 20210715

1574. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 35%]

...ay<any>, coverBefore?: boolean): void; /** 返回统计信息。*/ toString(): string; /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 */ clear(caller: any, method: Function): void; /** * 清理对象身上的所有定时器。 * @param call...

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

1575. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 34%]

...销毁。这些残留下的资源需要分别使用`Laya.loader.getRes(url:String)`接口获取到资源(Resource)对象之后,再调用资源对象的`destroy()`方法进行销毁。但是这种方法是非常麻烦的。LayaAir2.0为了方便开发者,提供了`Resource.destroyUnusedResour...

来源: Laya2.0_文档 发布时间: 20210715

1576. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 34%]

...("skyBox/skyCube.ltc"); camera.sky = sky; } private _sprite3dURl:string = "LayaScene_ActionCheck/ActionCheck.lh"; wky379937316 • 2018-03-19 21:08 这是什么情况呢?是引擎不支持场景吗?如果能解决,请给一个解决方案,谢谢 涛涛~ • 2019-07-06 16:...

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

1577. 单选框组容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

... + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): Laya.RadioGroup { let rg: Laya.RadioGroup = new Laya.RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "vertical"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize...

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

1578. laya.physics.joint.PulleyJoint_API3.0 [ 34%]

...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 selfAnchor selfAnchor: any[] = [0, 0] Defined in laya/physics/joint/PulleyJoint.ts:18 [首次设置有效]自身刚体链接点,是相对...

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

1579. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

....HEI); this.img = new Laya.Image(); this.addChild(this.img); } setImg(src: string): void { this.img.skin = src; } } 运行效果: (图2-1) List的其他属性也可以通过代码来设置,有兴趣的读者可以自己通过代码设置List,创建出符合自己需要的列表。 Copyrigh...

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

1580. laya.physics.joint.WeldJoint_API3.0 [ 34%]

...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 selfBody selfBody: RigidBody Defined in laya/physics/joint/WeldJoint.ts:14 [首次设置有效]关节的自身刚体 Accessors awaked get a...

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