大约有 104 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
...在创建之前已经载入。所以这里使用了一个IEditor.onLoad的回调用于提前载入资源。 2、设置字段的inspector属性为刚才取的名字,这里为MyTestField @Laya.regClass() export class Script extends Laya.Script { @property({ type : Laya.Node, inspector: "MyTestField"...
来源: Laya3.0_文档 发布时间: 20251010
...load = ......和script.onerror =....分别是加载完成和加载失败的回调函数。 Laya.Browser.document.body.appendChild(script);把创建的script标签添加到页面。 var client:any = new Laya.Browser.window.Demo1();实例化js声明的那个类。 client.start();调用实例的函数...
来源: Laya3.0_文档 发布时间: 20251010
...。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指定的 Node...
来源: Laya3.0_api 发布时间: 20231115
...gt; * @param url 图片地址。 * @param complete (可选)加载完成回调。 * @return 返回精灵对象本身。 */ loadImage(url: string, complete?: Handler): Sprite; 我们来看看代码示例: let sprite = new Laya.Sprite(); // 加载并显示一个图片,居中显示 sprite.loadIm...
来源: Laya3.0_文档 发布时间: 20251010