• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 797 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)

691. UI-CheckBox [ 53%]

...nst X_OFFSET:int = 100; private const Y_OFFSET:int = 50; private var skins:Array; public function UI_CheckBox() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_S...

来源: Laya_示例 发布时间: 20260819

692. laya.ui.Label [ 53%]

...nly] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  font : String 文本的字体名称,以字符串形式表示。 默认值为:"Arial",可以通过Font.defaultFont设置默认字体。 如果运行时系统...

来源: laya_api 发布时间: 20170929

693. 3D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...体LOD属性信息, 然后将Volume中的所有物体按照LOD Cull Rate Array的物体LOD等级划分为不同的LOD渲染对象 图6-3 图6-4 7.基于节点的材质合批功能 7.1表现效果 基于节点的材质合批功能可以通过图7-1和图7-2来展示其表现,本测试案例的场...

来源: Laya3.0_文档 发布时间: 20251010

694. parameter 2 is not of type 'WebGLTexture'. [ 53%]

...请问一下有别的方法吗 2.0.0编译报错Cannot find global type 'Array' TypeScript 泛形方法如何传TYPE? 发布微信小程序提示找不到type属性 Property 'BoxMesh' does not exist on type 'typeof Laya' Spine 格式转换, Error: Invalid timeline type for a slot:twoColor XmlDom类...

来源: Laya_社区 发布时间: 20200722

695. laya.ui.ComboBox [ 53%]

...nly] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴缩放值(会叠加父亲节点的缩放值)。 Sprite globalScaleY : Number[read-only] 获...

来源: laya_api 发布时间: 20170929

696. laya.resource.Texture_API3.0 [ 53%]

... Constructors constructor new Texture(source?: Texture | BaseTexture, uv?: ArrayLike<number>, sourceWidth?: number, sourceHeight?: number): Texture Overrides Resource.__constructor Defined in laya/resource/Texture.ts:228 创建一个 Texture 实例。 Parameters Default value source: Texture |...

来源: Laya3.0_api 发布时间: 20231115

697. 绘制矩形与圆角矩形(TypeScript-LayaAir基础篇(TS)-矢量图) [ 53%]

...            //自定义路径             var path:Array =  [                 ["moveTo", 0, 0], //画笔移到A点                 ["lineTo", 100, 0],//画到B点                 ["lineTo", 100, 50],//再画到C点  ...

来源: Laya2.0_文档 发布时间: 20210715

698. 请大家帮助优化一下这个抛物线的代码 [ 53%]

...e radius:number = 150; //半径 private speed:number = .05; private points:Array<any> = ; private i:number = 0; constructor() { Laya.init(1100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ t...

来源: Laya_社区 发布时间: 20171108

699. 怎么清理掉 Sprite3D 相关的缓存资源, 资源destroy后内存还下降、。 [ 52%]

... private static function clearRole3dRes(groupName:String):void { var arr:Array = Loader.groupMap[groupName]; if(arr != null){ for each (var url:String in arr) { var item:Resource = Laya.loader.getRes(url); if(item != null){ item.destroy(); item = null; } } Loader.clearResByGroup(groupName); } }

来源: Laya_社区 发布时间: 20180517

700. laya.ui.TextArea [ 52%]

...anSprite editable : Boolean 设置可编辑状态。 TextInput filters : Array滤镜集合。可以设置多个滤镜组合。Sprite focus : Boolean 表示焦点是否在此实例上。 TextInput font : String 文本的字体名称,以字符串形式表示。 默认值为:"Arial",可以通...

来源: Laya2.0_api 发布时间: 20190513