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

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

2341. 内置骨骼动画 · LayaAir3.4 · 引擎文档 · LAYABOX [ 48%]

...用的类,Laya.Templet 是用于处理资源 代码示例: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loade...

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

2342. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 48%]

...例代码如下: **入口类GameMain.ts** ```typescript // 程序入口 class GameMain{ constructor() { //初始化引擎 Laya.init(1334,750,Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atla...

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

2343. laya.d3.component.volume.batchvolume.BatchRender_API3.0 [ 48%]

...enu Globals "laya/d3/component/Volume/BatchVolume/BatchRender" BatchRender Class BatchRender 类用来描述合批的渲染节点 Hierarchy BaseRender BatchRender StaticInstanceBatchRender StatiVertexMergeBatchRender Implements IBoundsCell Index Constructors constructor Properties _extra _receiveSha...

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

2344. LayaFlash针对资源的加载是同步还是异步? [ 48%]

...eScaleMode; import flash.events.Event; import flash.net.URLRequest; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); t...

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

2345. 请问Laya如何使用第三方物理库 [ 48%]

...() { this.world.step(1 / 60); }   再把CANNON.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = fals...

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

2346. laya.d3.core.Transform3D [ 48%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Transform3DProperties | Methods Packagelaya.d3.coreClasspublic class Transform3DInheritanceTransform3D EventDispatcher Object Transform3D 类用于实现3D变换。 Public Properties PropertyDefined By  localMatrix : ...

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

2347. 自定义UI导致编辑器无显示 [ 48%]

...;& (clipY=1); this._clipX=clipX; this._clipY=clipY; this.skin=url; } __class(LabelAtlas,'laya.customUI.LabelAtlas',_super); var __proto=LabelAtlas.prototype; return LabelAtlas; })(Clip) xml如下: <?xml version="1.0" encoding="utf-8"?> <uiComp> <!-- drag:0-...

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

2348. LayaFlash把socket转成webSocket后监听不到connect事件(已解决) [ 48%]

... flash.events.Event;     import flash.net.Socket;          public class TestWebSocket extends Sprite     {         public var s:Socket;                  public function TestWebSocket()         {             s = new Socket();                  ...

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

2349. 加了两个遮罩后的动画,帧频只有10了,有demo,有项目,有源码 [ 48%]

...dfirecode/Laya_Mask_Demo 源码 https://github.com/wildfirecod ... le.ts  class GameMain{ constructor() { Laya.init(1920,950,Laya.WebGL); Laya.Stat.show(); const container = new Laya.Sprite(); Laya.stage.addChild(container); const mask = new Laya.Sprite(); mask.graphics.drawPoly(0, 0, [0, 0, 484, 0...

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

2350. laya.d3.math.Quaternion [ 48%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames QuaternionProperties | Methods | Constants Packagelaya.d3.mathClasspublic class QuaternionInheritanceQuaternion ObjectImplements laya.d3.core.IClone Quaternion 类用于创建四元数。 Public Properties PropertyDefi...

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