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

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

31. laya.d3.core.light.LightSprite_API3.0 [ 71%]

...ll Inherited Externals Only exported Menu Globals "laya/d3/core/light/LightSprite" LightSprite Class LightSprite deprecated LightSprite 类用于创建灯光的父类。 Hierarchy Sprite3D LightSprite DirectionLight PointLight SpotLight Index Constructors constructor Properties _extra _scene _url na...

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

32. 2D拖尾渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 70%]

...代码 */ export class NewScript extends Laya.Script { declare owner: Laya.Sprite; private _trail2D: Laya.Trail2DRender; //从场景文件中获取到的宽度曲线数据 private _widthCurve: any[]; //从场景文件中获取到的颜色渐变数据 private _gradient: any; //组件被激活后执...

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

33. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 69%]

...性标识的类型支持引擎对象类型(例如:Laya.Vector3、Laya.Sprite3D、Laya.Camera等)、自定义的对象类型(需要标记@regClass())、以及TS语言的基本类型。 2.5.1 引擎对象类型 引擎对象类型的理解比较简单,暴露组件属性之后,直接传...

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

34. laya.display.Graphics [ 69%]

...方式存储,可以通过cmds属性访问所有命令流。Graphics是比Sprite更轻量级的对象,合理使用能提高应用性能(比如把大量的节点绘图改为一个节点的Graphics命令集合,能减少大量节点创建消耗)。 See alsolaya.display.Sprite.graphicsPublic Proper...

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

35. laya.utils.PerfHUD [ 69%]

...ds | Events Packagelaya.utilsClasspublic class PerfHUDInheritancePerfHUD Sprite Node EventDispatcher ObjectPublic Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-on...

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

36. 3D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

....Material; //颜色数目 private _colorNums = 20; //精灵数目 private _spriteNums = 200; private _createColorBufferData() { //随机给20个颜色值 let colorBuffer = new Float32Array(20 * 4); for (var i = 0; i < this._colorNums; i++) { let offset = i * 4; colorBuffer[offset] = Math.random()...

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

37. 2D自由形态光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...s() export class LightEffectDemo extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.FreeformLight2D; private rotateSpeed: number = 2; // 增加旋转速度 private scaleTime: number = 0; private scaleSpeed: number = 3; // 增加缩放速度 private intensity: number = 1.8; // ...

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

38. 2D光遮挡器与阴影 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...) export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组件被启用后执行,...

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

39. laya.resource.NativeContext_API3.0 [ 66%]

...Index Constructors constructor Properties _buffer _byteArray _fdata _idata sprite ARRAY_BUFFER_REF_COPY ARRAY_BUFFER_REF_REFERENCE ARRAY_BUFFER_TYPE_CMD ARRAY_BUFFER_TYPE_DATA ENUM_TEXTALIGN_CENTER ENUM_TEXTALIGN_DEFAULT ENUM_TEXTALIGN_RIGHT const2DRenderCMD Accessors _curMat _targets asBitmap fillS...

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

40. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 64%]

...ited Externals Only exported Menu Globals "laya/d3/core/pixelLine/PixelLineSprite3D" PixelLineSprite3D Class PixelLineSprite3D PixelLineSprite3D 类用于像素线渲染精灵。 Hierarchy RenderableSprite3D PixelLineSprite3D Index Constructors constructor Properties _extra _scene _url name tag LIGH...

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