Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Effect

特效资源,供Material使用。

Hierarchy

Index

Constructors

constructor

  • new Effect(description: DeepImmutableObject<IEffectAsset>): Effect
  • 根据特效配置生成特效资源。

    Parameters

    • description: DeepImmutableObject<IEffectAsset>

      特效配置。

    Returns Effect

Properties

Readonly description

description: DeepImmutableObject<IEffectAsset>

Optional groupID

groupID: string

Optional resourceID

resourceID: string

编辑器中使用的资源id。

memberof

BaseResource

Static RendererType

RendererType: Readonly<typeof EnumRendererType> = ...

Accessors

name

  • get name(): string
  • 特效名称。

    Returns string

passCount

  • get passCount(): number
  • 有几个Pass。

    Returns number

supportInstance

  • get supportInstance(): boolean
  • 是否支持开启Instance。

    Returns boolean

Methods

warmUp

  • warmUp(): boolean
  • 预编译

    Returns boolean

Static AddAfterConstructorCbList

  • AddAfterConstructorCbList(cb: (effect: Effect) => any): void
  • Parameters

    Returns void

Static AddBeforeConstructorCbList

  • AddBeforeConstructorCbList(cb: (resourceDescription: DeepImmutableObject<IEffectAsset>) => any): void
  • Parameters

    • cb: (resourceDescription: DeepImmutableObject<IEffectAsset>) => any
        • (resourceDescription: DeepImmutableObject<IEffectAsset>): any
        • Parameters

          • resourceDescription: DeepImmutableObject<IEffectAsset>

          Returns any

    Returns void

Generated using TypeDoc