Search Results for

    Show / Hide Table of Contents

    Class ParticlesComponent

    Class that represents a particle system component.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    ParticlesComponent
    Implements
    IDependencyObject
    Inherited Members
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.OnActivated()
    Component.OnDeactivated()
    Component.OnDestroy()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Particles.Components
    Assembly: Evergine.Framework.dll
    Syntax
    public class ParticlesComponent : Component, IDependencyObject

    Constructors

    ParticlesComponent()

    Initializes a new instance of the ParticlesComponent class.

    Declaration
    public ParticlesComponent()

    Fields

    EmitAutomatically

    If true, the particle system will start emitting particles automatically.

    Declaration
    public bool EmitAutomatically
    Field Value
    Type Description
    bool

    LifeFactor

    Gets or sets the life factor.

    Declaration
    public float LifeFactor
    Field Value
    Type Description
    float

    TimeFactor

    Gets or sets the time factor.

    Declaration
    public float TimeFactor
    Field Value
    Type Description
    float

    Transform

    The transform of the particle system.

    Declaration
    [BindComponent(true, true, BindComponentSource.Owner, null, true)]
    public Transform3D Transform
    Field Value
    Type Description
    Transform3D

    Properties

    Emitters

    Gets the particle system emitters.

    Declaration
    public IEnumerable<EmitterSimulator> Emitters { get; }
    Property Value
    Type Description
    IEnumerable<EmitterSimulator>

    ForceCPUParticles

    Gets or sets a value indicating whether to force to simulate the particle system using CPU instead of compute shader..

    Declaration
    public bool ForceCPUParticles { get; set; }
    Property Value
    Type Description
    bool

    IsEmitting

    Gets a value indicating whether the particle system is emitting or not.

    Declaration
    public bool IsEmitting { get; }
    Property Value
    Type Description
    bool

    ParticleSystem

    Gets or sets the particle system asset of the component.

    Declaration
    public ParticleSystem ParticleSystem { get; set; }
    Property Value
    Type Description
    ParticleSystem

    SourceEntity

    Gets or sets the target entity.

    Declaration
    public Entity SourceEntity { get; set; }
    Property Value
    Type Description
    Entity

    SourceEntityId

    Gets or sets the id of the target entity.

    Declaration
    public Guid SourceEntityId { get; set; }
    Property Value
    Type Description
    Guid

    SourceEntityPath

    Gets or sets the path of the target entity.

    Declaration
    public string SourceEntityPath { get; set; }
    Property Value
    Type Description
    string

    Methods

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if all is OK.

    Overrides
    Component.OnAttached()

    OnDetach()

    Invoked when the object is detached.

    Declaration
    protected override void OnDetach()
    Overrides
    Component.OnDetach()

    RefreshParticleSystem()

    REfreshes the particle system properties.

    Declaration
    public void RefreshParticleSystem()

    Reset()

    Resets the state of the particle system.

    Declaration
    public void Reset()

    Start()

    Invoked to start the object.

    Declaration
    protected override void Start()
    Overrides
    Component.Start()

    StartEmitting()

    Starts the particles emission.

    Declaration
    public void StartEmitting()

    StopEmitting()

    Stop the particles emission.

    Declaration
    public void StopEmitting()

    Events

    ParticleSystemUpdated

    Event launched when the particle system asset is updated.

    Declaration
    public event EventHandler<ParticleSystem> ParticleSystemUpdated
    Event Type
    Type Description
    EventHandler<ParticleSystem>

    SourceEntityChanged

    Event fired when a new entity is selected as target of a particle system.

    Declaration
    public event EventHandler<Entity> SourceEntityChanged
    Event Type
    Type Description
    EventHandler<Entity>

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX