大约有 278 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...可以去手动改引擎源码。增加fontStyle(或者其他你喜欢的名字)这个属性。然后修改一下LayaAir.d.ts,这样就不用蛋疼的使用中括号语法,直接一路点点点,编辑器还有提示。 2.不知能不能去扩展编辑器,给相应控件增加一个选样式...
来源: Laya_社区 发布时间: 20171226
...字体集。 这些字体在不同国家或语言地区的设备上可能名字也不一样。 所以这个方式不能从根源上解决不同设备的字体集差异。 Text isChanged : Boolean[write-only] 一个布尔值,表示文本的属性是否有改变。若为true表示有改变。 TextP...
来源: laya_api 发布时间: 20170929
...节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(c...
来源: Laya2.0_api 发布时间: 20190513
...材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodDefined By _disposeResource():void[override] BaseMaterialPublic Constants Hide Inherited Public Constants Show I...
来源: Laya2.0_api 发布时间: 20190513
...s Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir中自带的材质会随着`Laya3D.init`初始化。这里...
来源: Laya2.0_文档 发布时间: 20210715
...材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodDefined By _disposeResource():void[override] BaseMaterialPublic Constants Hide Inherited Public Constants Show I...
来源: Laya2.0_api 发布时间: 20190513
...节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponentByIndex(index:int):Component3D 通过指定索引获得组件。 Sprite3D getComp...
来源: laya_api 发布时间: 20170929
...t(v); } public get text(): string { return this._text; } /** * 获取资源名字(laya自己合成的图) * @param keyChar */ private getResName(keyChar: string): string { return this.resFix + keyChar + ".png"; } /** * 清除字体 */ private clearFnt(): void { XUtils.removeChilds(this.chars, BP...
来源: Laya_社区 发布时间: 20180302
...s Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir中自带的材质会随着`Laya3D.init`初始化。这里...
来源: Laya2.0_文档 发布时间: 20210715
...格。 heightMap: HeightMap 高度图。 Default value name: string = null 名字。 Returns MeshTerrainSprite3D Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:58 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:...
来源: Laya3.0_api 发布时间: 20231102