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

大约有 350 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0077 秒)

81. laya.map.MapLayer [ 79%]

...archy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并...

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

82. 性能测试-骨骼 [ 79%]

...(tTexture, arraybuffer, 10); } private parseComplete(): void { for (var i: number = 0; i = tAnimNum) { this.mActionIndex = 0; } for (var i: number = 0, n: number = this.mAnimationArray.length; i = tAnimNum) { mActionIndex = 0; } for (var i:int = 0, n:int = mAnimationArray.length; i < n; i++) { mAnim...

来源: Laya2.0_示例 发布时间: 20240930

83. 鼠标交互-滑动 [ 79%]

... export class Interaction_Swipe { //swipe滚动范围 private TrackLength: number = 200; //触发swipe的拖动距离 private TOGGLE_DIST: number = this.TrackLength / 2; private buttonPosition: number; private beginPosition: number; private endPosition: number; private button: Sprite; constructor() ...

来源: Laya2.0_示例 发布时间: 20240930

84. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 79%]

... * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static startScene:string="test/TestScene.scene"; static sceneRoot:string=""; static debug:boolean=false; static sta...

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

85. laya.ani.bone.Skeleton [ 79%]

...c Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并...

来源: laya_api 发布时间: 20170929

86. 文本-滚动文本 [ 79%]

...= Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

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

87. laya.ani.bone.Skeleton [ 79%]

...archy : Boolean[read-only] 获取在场景中是否激活。 Node alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并...

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

88. UI-List [ 79%]

...对应图片的路径 let data = []; for (let i = 0; i = []; for (var i: number = 0; i < 10; ++i) { data.push("res/ui/listskins/1.jpg"); data.push("res/ui/listskins/2.jpg"); data.push("res/ui/listskins/3.jpg"); data.push("res/ui/listskins/4.jpg"); data.push("res/ui/listskins/5.jpg"); } list.array = ...

来源: Laya2.0_示例 发布时间: 20240930

89. UI-List [ 79%]

...对应图片的路径 var data = []; for (var i = 0; i = []; for (var i: number = 0; i < 10; ++i) { data.push("../../res/ui/listskins/1.jpg"); data.push("../../res/ui/listskins/2.jpg"); data.push("../../res/ui/listskins/3.jpg"); data.push("../../res/ui/listskins/4.jpg"); data.push("../../res/ui/list...

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

90. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 79%]

...c var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Ha...

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