Class ParticleSourceInterface

    Definition

    Namespace:
    Tizen.NUI.ParticleSystem
    Assembly:
    Tizen.NUI.dll

    ParticleSourceInterface provides callbacks in order to define how new particles are emitted.

    public class ParticleSourceInterface
    Inheritance
    object
    ParticleSourceInterface

    Constructors

    View Source

    ParticleSourceInterface()

    Constructor

    Declaration
    public ParticleSourceInterface()

    Fields

    View Source

    Emitter

    ParticleEmitter proxy that can be accessed by the user implementation

    Declaration
    public ParticleEmitterProxy Emitter
    Field Value
    Type Description
    ParticleEmitterProxy

    Methods

    View Source

    Construct(params object[])

    Second constructor

    Declaration
    public virtual void Construct(params object[] list)
    Parameters
    Type Name Description
    object[] list

    List of arguments

    Remarks

    Second constructor should be overriden by the implementation. It allows passing variable number of arguments for processing. It is called immediately following the class constructor.

    View Source

    Init()

    Initializes ParticleSource

    Declaration
    public virtual void Init()
    Remarks

    This callback should be overriden in order to initialise the ParticleSource. It is called after ParticleEmitter.SetSource() and runs on the Event thread. It is the only place where ParticleSource may use NUI objects.

    View Source

    Update(ParticleEmitterProxy, uint)

    Updates the ParticleSource.

    Declaration
    public virtual uint Update(ParticleEmitterProxy emitterProxy, uint count)
    Parameters
    Type Name Description
    ParticleEmitterProxy emitterProxy

    Proxy to the ParticleEmitter object

    uint count

    Number of particles emitter expects to be spawned during call

    Returns
    Type Description
    uint

    Number of spawned particles

    Remarks

    This callback is responsible for spawning new particles. To spawn new particle, emitter.NewParticle() must be call. Number of particles to emit is given as 'count'.

    This callback runs on the Update thread! It should avoid using NUI objects.

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX