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

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

1741. 粒子-粒子演示3 [ 64%]

...), 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

1742. 动画-图集动画 [ 64%]

...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

1743. unity里导出的骨骼动画无法读取 [ 64%]

...andler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();              Laya.stage.addChild(scene);              //添加照相机     ...

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

1744. 绘制直线与折线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 64%]

...);         }           private function drawSomething():void         {             sp = new Sprite();             Laya.stage.addChild(sp);             //画直线             sp.graphics.drawLine(10, 58, 146, 58, "#ff0...

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

1745. 基础文本 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...{ 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

1746. LayaAir UnityPlugin反编译和BoxCollider的Bug修复 [ 63%]

...: 然而在导出BoxCollider组件时,没有* -1。找到public static void getBoxColliderComponentData(GameObject gameObject, JSONObject component)方法: 所以我们要修复这个bug。很简单,加一个负号即可: 这个时候,Unity工程里有LayaAirLibrary.dll和它的源码。...

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

1747. 最新版本 1.7.5 beta fontClip [ 63%]

...- 哇啦哇啦哇啦! 赞同来自: public function set index(value:int):void {             _index = value;             if (_bitmap && _sources) {                 this.graphics.clear();                 var splitArr:Array = value.toString().split(''...

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

1748. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 63%]

...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

1749. laya.d3.resource.models.PrimitiveMesh_API3.0 [ 63%]

...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

1750. 使用laya官方示例代码制作微信小游戏无法显示 [ 63%]

..._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