大约有 187 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
...组的图层,在图层的自定义属性栏,添加一个名为layer的string类型属性。操作如图4-1所示。 (图4-1) 点击OK,添加完成后,将所有添加了自定义属性layer的图层。设置分组名称。 例如,我们将块层2与块层3的分组名称设置为 layaAi...
来源: Laya3.0_文档 发布时间: 20251010
...也可以省略这个声明 static test(this: IEditorEnv.IGameScene, msg: string) { console.log(msg); //hello return "ok"; } } //下面是UI进程的代码 let ret = await Editor.scene.runScript("TestSceneScript.test", "hello"); console.log(ret); //ok 特别的用法,可以通过window对象调用...
来源: Laya3.0_文档 发布时间: 20251010
...tPoint updateZOrder fromImage Constructors constructor new CheckBox(skin?: string, label?: string): CheckBox Overrides Button.constructor Defined in laya/ui/CheckBox.ts:83 创建一个新的 CheckBox 组件实例。 Parameters Default value skin: string = null 皮肤资源地址。 Default value lab...
来源: Laya3.0_api 发布时间: 20231115
...显示这个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
...esh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { var meshTerrainSprite3D: MeshTerrainSprite3D = new MeshTerrainSprite3D(mesh, null, name); meshTerrainSprite3D._initCreateFromMeshHeightMap(texture, minHeight, maxHeight); return meshTerra...
来源: Laya3.0_文档 发布时间: 20230303
... * @param normalizedTime 归一化的播放起始时间。 */ play(name: string | null = null, layerIndex: number = 0, normalizedTime: number = Number.NEGATIVE_INFINITY) 这是动画状态机里最基本的播放动画方式,通过下面的代码: //动画状态机,直接播放Run动画状态 ...
来源: Laya3.0_文档 发布时间: 20251010
...av/h suim:1 s.237} 08-14 10:57:51.382 3194-3563/? E/Parcel: Reading a NULL string not supported here. Reading a NULL string not supported here. 08-14 10:57:51.390 3526-5095/? W/WindowState: Failed to report 'resized' to the client of Window{58e6240 u0 SurfaceView}, removing this window. 08-14 ...
来源: Laya_社区 发布时间: 20180814