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

大约有 1,106 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)

251. 其他引擎的Demo-Example_04 [ 69%]

...height, slideX = w / 2, slideY = h / 2, speedInfo; class PIXI_Example_04 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(w, h, WebGL); Laya.stage.alignV = Stage.ALIGN_M...

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

252. laya.d3.math.native.ConchVector3_API3.0 [ 69%]

...用于创建三维向量。 Hierarchy ConchVector3 Implements IClone Index Constructors constructor Properties elements ForwardLH ForwardRH NAN NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Accessors x y z Methods clone cloneTo fromArray setValue toDefault Clamp TransformNormal add cross distance dist...

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

253. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 69%]

...t module laya{ export class SkeletonTempletSample { templet: Laya.Templet; constructor() { Laya.WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.o...

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

254. laya.resource.Texture2DArray_API3.0 [ 69%]

...Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture destroyed dimension filterMode format gammaCorrection gamma...

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

255. 区块地图-带动画的地图 [ 69%]

...言、LayaAirIDE让项目开发更高效。class TiledMap_AnimationTile { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALI...

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

256. laya.ani.GraphicsAni_API3.0 [ 69%]

...csAni Class GraphicsAni Graphic动画 Hierarchy Graphics GraphicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fill...

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

257. 2.0 beta UI Button无法获取 [ 69%]

...e ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码:   import { ui } from "../ui/layaMaxUI"; export default class AttackView extends ui.AttackUI { construc...

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

258. 一个很奇怪的问题,不知道其他同学遇到没有 [ 69%]

...的程序入口文件,新建一个main.ts,输入以下代码: class main{ constructor(){ Laya.init(600,400); console.log(common.num); } } new main();   这里面访问了另外一个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动...

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

259. laya.d3.resource.models.Mesh_API3.0 [ 68%]

...件网格数据模板。 Hierarchy Resource Mesh Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock morphTargetData name url uuid DEBUG MESH_INSTANCEBUFFER_TYPE_NORMAL MESH_INSTANCEBUFFER_TYPE_SIMPLEANIMATOR Accessors bounds cpuMemory destroyed gpuMemory id ind...

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

260. 性能测试-骨骼 [ 68%]

...onArray = [], mFactory, mActionIndex = 0; class PerformanceTest_Skeleton { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser....

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