大约有 36 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)
...extends: "Script", construct: { params: [ { "name": "testParams", "type": "string" } ] } }) export class TestBluePrint extends Laya.Script { constructor(testParams: string) { super(); } } (图12-1) 3.2 属性 在变量前使用装饰器的标识@bpProperty,在get和set前使用装饰器的标...
来源: Laya3.0_文档 发布时间: 20251010
...显示Tips或属性的中文别名等完整功能需求 @property({ type: String, caption: "IDE显示用的别名", tips: "这是一个文本对象,只能输入文本哦" }) public text1: string = ""; //装饰器属性类型的简写方式,适用于只定义类型的需求 @property(String) publ...
来源: Laya3.0_文档 发布时间: 20251010
...串。如果请求未完成或失败,则该值为 null responseText DOMString 此次请求的响应为文本,或是当请求未成功或还未发送时为 null只读。 responseType XMLHttpRequestResponseType 设置该值能够改变响应类型。就是告诉服务器你期望的响应格式。...
来源: Laya3.0_文档 发布时间: 20250104
...) * @param progress 加载进度回调(可选) */ static open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Handler = null): Promise<Scene> { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [close...
来源: Laya3.0_文档 发布时间: 20251010
...则按照http://*/算,所有的请求都裁掉主机地址 pathMapToDCC:string; /** * * @param frw 文件访问接口,不同的平台需要不同的实现。如果为null,则自动选择网页或者native两个平台 * @param dccurl dcc的服务器地址 */ constructor(dccurl:string, frw:new (...
来源: Laya3.0_文档 发布时间: 20251010
...1,事件类型请参考API文档。 (图2-1) 例如 Laya.Event.CLICK:string = "click"。CLICK 静态属性用于定义事件对象的type类型属性值为单击事件。这个事件是由鼠标点击触发后系统派发的事件,开发者也可以调用event()方法派发这些事件,如...
来源: Laya3.0_文档 发布时间: 20251010
...类型标识字符。 * @return 对象池。 */ static getPoolBySign(sign: string): any[] { return Pool._poolDic[sign] || (Pool._poolDic[sign] = []); } Laya.Pool 是通过对象类型标识符,也就是一个字符串名字来标识和管理对象池的。如果对象池系统中没有这个标识...
来源: Laya3.0_文档 发布时间: 20251010
...d子节点 查找 根据名字,获取子节点对象getChildByName(name: string) 当我们知道某个节点的名字时,可以用个此方法找到父节点下一级的某个子节点 根据子节点的索引位置,获取子节点对象getChildAt(index:number) 当我们知道某个节点的...
来源: Laya3.0_文档 发布时间: 20251010
...va”中的getExpansionMainPath函数,设置正确的zip路径。 public String getExpansionMainPath() { return "/storage/emulated/0/Android/test/com.layabox.game/test.zip"; } public String getExpansionPatchPath() { return ""; } LayaNative中最多支持两个zip文件,第二个zip修改getExpan...
来源: Laya3.0_文档 发布时间: 20251010
...齐方式,可选值:"left","center","right"。 */ fillText(text: string | WordText, x: number, y: number, font: string, color: string, textAlign: string): FillTextCmd { return this.addCmd(FillTextCmd.create(text, x, y, font, color, textAlign, 0, "")); } 这里重点介绍一下fillText中fon...
来源: Laya3.0_文档 发布时间: 20251010