大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.height / 2; } } } new laya.Particle_T3();package { imp...
来源: Laya_示例 发布时间: 20260303
...load(this.AniConfPath, this.createAnimation); } private createAnimation(): void { var ani: Animation = new Animation(); ani.loadAtlas(this.AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图...
来源: Laya_示例 发布时间: 20260303
...andler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); //添加照相机 ...
来源: Laya_社区 发布时间: 20180116
...); } private function drawSomething():void { sp = new Sprite(); Laya.stage.addChild(sp); //画直线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0...
来源: Laya2.0_文档 发布时间: 20210714
...{ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this.txt.setVar...
来源: Laya3.0_文档 发布时间: 20251010
...: 然而在导出BoxCollider组件时,没有* -1。找到public static void getBoxColliderComponentData(GameObject gameObject, JSONObject component)方法: 所以我们要修复这个bug。很简单,加一个负号即可: 这个时候,Unity工程里有LayaAirLibrary.dll和它的源码。...
来源: Laya_社区 发布时间: 20180405
...- 哇啦哇啦哇啦! 赞同来自: public function set index(value:int):void { _index = value; if (_bitmap && _sources) { this.graphics.clear(); var splitArr:Array = value.toString().split(''...
来源: Laya_社区 发布时间: 20170601
...super.onHide(); this.contentPane.offAllCaller(this); } private startGen(): void { // todo } } class SplitAtlasSetting { @IEditor.onLoad static start() { Editor.typeRegistry.addTypes([ { name: "SplitAtlasSetting", catalogBarStyle: "hidden", properties: [ { name: "help", caption: "提示", inspector: ...
来源: Laya_社区 发布时间: 20250731
...er createPlane createQuad createSphere Methods Static __init__ __init__(): void Defined in laya/d3/resource/models/PrimitiveMesh.ts:18 Returns void Static createBox createBox(long?: number, height?: number, width?: number): Mesh Defined in laya/d3/resource/models/PrimitiveMesh.ts:69 创建Box网格...
来源: Laya3.0_api 发布时间: 20231115
..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel...
来源: Laya_社区 发布时间: 20180529