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

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

281. laya.ui.AutoBitmap_API3.0 [ 67%]

...宫格的处理,供UI组件使用。 Hierarchy Graphics AutoBitmap Index Constructors constructor Properties _color uv Accessors cmds color height sizeGrid source width Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawP...

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

282. 加载-错误处理和进度 [ 67%]

...开发更高效。let numLoaded = 0; class Loader_ProgressAndErrorHandle { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Bro...

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

283. laya.display.Graphics_API3.0 [ 67%]

...ya.display.Sprite#graphics Hierarchy Graphics GraphicsAni AutoBitmap 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

284. 输入设备-贪吃蛇(重力感应) [ 66%]

...t = 5, vx = 0, vy = 0, targetPosition; class InputDevice_GluttonousSnake { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Accelerator = Laya.Accelerator; // 不支持WebGL时自动切换至Canvas Lay...

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

285. laya.d3.resource.RenderTexture_API3.0 [ 66%]

...e WebXRRenderTexture MulSampleRenderTexture Implements IRenderTarget Index Constructors constructor Properties _generateMipmap _inPool _isCameraTarget _renderTarget destoryedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel colorFormat compareMode cpuMemory defaultTexture dep...

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

286. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 66%]

...ame=ScriptSample))。 > 主类: > ```typescript class ScriptSample() { constructor(){ //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //预加载所有资源 var resource:Array = ["res/threeDimen/skinModel/LayaMon...

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

287. 性能测试-卡通人物 [ 66%]

...peed = 2, rotateSpeed = 2, characterGroup; class PerformanceTest_Cartoon { 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

288. Sprite-根据数据绘制路径 [ 66%]

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

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

289. laya.resource.RenderTexture_API3.0 [ 66%]

...exture WebXRRenderTexture RenderTextureCube Implements IRenderTarget Index Constructors constructor Properties _generateMipmap _id _inPool _isCameraTarget _renderTarget destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel colorFormat compareMode cpuMemory defaultTexture...

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

290. laya.resource.RenderTexture2D_API3.0 [ 66%]

...。 Hierarchy BaseTexture RenderTexture2D Implements IRenderTarget Index Constructors constructor Properties _id _isCameraTarget _renderTarget depthStencilTexture destroyedImmediately lock name url uuid DEBUG _clearColor _clearLinearColor defuv flipyuv Accessors anisoLevel baseMipmapLevel compareMod...

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