大约有 1,460 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0062 秒)
Laya3.0_api(398) Laya_社区(300) Laya2.0_api(251) laya_api(215) Laya2.0_文档(167) Laya3.0_文档(90) Laya2.0_示例(22) Laya_示例(17)
...rite, Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild(this.spBg); // 创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addCh...
来源: Laya2.0_示例 发布时间: 20250223
...理的父类。 Public Methods MethodDefined By StaticBatchManager() 创建一个 StaticBatchManager 实例。 StaticBatchManager combine(staticBatchRoot:Sprite3D, renderableSprite3Ds:Vector.<RenderableSprite3D> = null):void[static] 静态批处理合并,合并后子节点修改Trans...
来源: Laya2.0_api 发布时间: 20190513
# Button 组件详解 ## 1、创建Button组件 按钮(Button)组件是最常用的组件之一,可以显示文本标签、图标或者两者同时显示。在LayaAirIDE里的按钮图片资源(按钮皮肤)命名通常是以btn为前缀,如图1所示。  (图1...
来源: Laya2.0_文档 发布时间: 20210715
...ed from SingletonList.constructor Defined in laya/utils/SingletonList.ts:9 创建一个新的 SingletonList 实例。 Returns FastSinglelist Methods destroy destroy(): void Inherited from SingletonList.destroy Defined in laya/utils/SingletonList.ts:76 Returns void indexof indexof(element: T): number...
来源: Laya3.0_api 发布时间: 20231115
通过模版创建TypeScript类文件的建议 通过模版创建TypeScript类文件时发现一个不便的地方,当我想创建抽象类或接口时没有办法指定,只能创建完ts文件,手动修改interface或abstract class代码,如果在创建时有一个选项感觉会方便很...
来源: Laya_社区 发布时间: 20161219
... By TerrainHeightData(width:int, height:int, bitType:int, value:Number) 创建一个 TerrainHeightData 实例。 TerrainHeightData _pharse(data:*, propertyParams:Object = null, constructParams:Array = null):void[static] 异步回调 TerrainHeightData load(url:String, complete:Handler, widht...
来源: Laya2.0_api 发布时间: 20190513
...eShuriKen/module/shape/BoxShape" BoxShape Class BoxShape BoxShape 类用于创建球形粒子形状。 Hierarchy BaseShape BoxShape Implements IClone Index Constructors constructor Properties enable randomDirection shapeType x y z Methods clone cloneTo generatePositionAndDirection Constructors const...
来源: Laya3.0_api 发布时间: 20231115
...lay.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.addItem = function(){ } _proto.onLoop = function(){ } })(); 因为是一个跑酷的游戏 所以 我们之...
来源: Laya_社区 发布时间: 20160728
# HScrollBar 组件参考 ## 一、通过LayaAirIDE创建HScrollBar组件 ### 1.1创建HscrollBar HScrollBar 组件是一个水平方向滚动条组件。 当数据太多以至于显示区域无法容纳时,最终用户可以使用 HScrollBar 组件控制所显示的数据部分。 滚...
来源: Laya2.0_文档 发布时间: 20210715
# List 组件参考 ## 一、通过LayaAirIDE创建List组件 List 组件可显示项目列表。默认为垂直方向列表。可通过UI编辑器自定义列表。List 列表的每一个列表通常是一样的,也可以使用编辑器自定义不同样式的列表内容项。 List 通...
来源: Laya2.0_文档 发布时间: 20210715