大约有 421 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
...组件。 Type parameters T: Component Parameters componentType: {} 组件类型。 Returns T 组件。 addComponentInstance addComponentInstance(component: Component): Component Inherited from Node.addComponentInstance Defined in laya/display/Node.ts:935 添加组件实例。 Parameters component: ...
来源: Laya3.0_api 发布时间: 20231115
...确认编码是不是正确的,那就另存为的时候选择一下编码类型。如下图所示。  这里提醒一下,有一些操作系统是没有Unicode编码的,那是因为windows后来系统升级后,旧系统的Unicode编码模式没有了。我们去选择**UTF-16 L...
来源: Laya2.0_文档 发布时间: 20210715
...m 'B' class A{ b:B; } 这种的,在生成js以后由于B只是表示类型,js是不需要的,所以上面的import就没了。 无法去掉的import主要是类似 new B, extends B, instanceof B, 以及静态成员访问B.stM 这种形式 例如上面的改成 b=new B() 就真的是...
来源: Laya_社区 发布时间: 20190730
...可选)高度。 type:String (default = repeat) — (可选)填充类型 repeat|repeat-x|repeat-y|no-repeat offset:Point (default = null) — (可选)贴图纹理偏移 ReturnsFillTextureCmdgetBounds()method public function getBounds(realSize:Boolean = false):Rectangle 获取位置...
来源: Laya2.0_api 发布时间: 20190513
...D骨骼动画(Spine、Skeleton)。 以上列出了可以创建的节点类型,下面就来介绍创建节点的方式,主要有两种:一种是创建的无父级关系的单独节点,即3D节点在Scene3D下,2D节点在Scene2D下;另一种是创建在某个节点下,作为其子节...
来源: Laya3.0_文档 发布时间: 20251011
...opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式为png; file.style.position ="absolute"; file.style.zIndex = 999; 下面看下完整的代码: class Main { private video:Laya.Video; constructor() { /...
来源: Laya3.0_文档 发布时间: 20251010
...可选)高度。 Default value type: string = "repeat" (可选)填充类型 repeat|repeat-x|repeat-y|no-repeat Default value offset: Point | null = null (可选)贴图纹理偏移 Default value color: string = null (可选)颜色 Returns FillTextureCmd | null getBounds getBounds(realSi...
来源: Laya3.0_api 发布时间: 20231115
...可选)高度。 Default value type: string = "repeat" (可选)填充类型 repeat|repeat-x|repeat-y|no-repeat Default value offset: Point | null = null (可选)贴图纹理偏移 Default value color: string = null (可选)颜色 Returns FillTextureCmd | null getBounds getBounds(realSi...
来源: Laya3.0_api 发布时间: 20231115
...opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式为png; file.style.position ="absolute"; file.style.zIndex = 999; Browser.document.body.appendChild(file);//添加到页面; file.onchange = function(e...
来源: Laya2.0_文档 发布时间: 20210715
...可选)高度。 Default value type: string = "repeat" (可选)填充类型 repeat|repeat-x|repeat-y|no-repeat Default value offset: Point | null = null (可选)贴图纹理偏移 Default value color: string = null (可选)颜色 Returns FillTextureCmd | null getBounds getBounds(realSi...
来源: Laya3.0_api 发布时间: 20231115