docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ParticleSystemSharp.Particle

    Namespace: Tuanjie.Infinity
    Assembly: solution.dll
    Syntax
    public struct ParticleSystemSharp.Particle

    Constructors

    Particle(float3, float3, float3, float3, float3, float3, float3, float3, float4, float4, uint, float, float, int, in Entry, UInt32)

    Declaration
    public Particle(float3 position, float3 velocity, float3 animatedVelocity, float3 axisOfRotation, float3 rotation, float3 rotationSpeed, float3 startSize, float3 sizeMul, float4 startColor, float4 renderColor, uint randomSeed, float localTime, float startLifetime, int meshIndex, in Entry entry, UInt32 flags)
    Parameters
    Type Name Description
    float3 position
    float3 velocity
    float3 animatedVelocity
    float3 axisOfRotation
    float3 rotation
    float3 rotationSpeed
    float3 startSize
    float3 sizeMul
    float4 startColor
    float4 renderColor
    uint randomSeed
    float localTime
    float startLifetime
    int meshIndex
    Entry entry
    UInt32 flags

    Properties

    angularVelocity

    Declaration
    public float angularVelocity { get; set; }
    Property Value
    Type Description
    float

    angularVelocity3D

    Declaration
    public Vector3 angularVelocity3D { get; set; }
    Property Value
    Type Description
    Vector3

    animatedVelocity

    Declaration
    public Vector3 animatedVelocity { get; }
    Property Value
    Type Description
    Vector3

    axisOfRotation

    Declaration
    public Vector3 axisOfRotation { get; set; }
    Property Value
    Type Description
    Vector3

    color

    Declaration
    public Color32 color { get; set; }
    Property Value
    Type Description
    Color32

    entry

    Declaration
    public Entry entry { get; }
    Property Value
    Type Description
    Entry

    meshIndex

    Declaration
    public int meshIndex { get; set; }
    Property Value
    Type Description
    int

    position

    Declaration
    public Vector3 position { get; set; }
    Property Value
    Type Description
    Vector3

    randomSeed

    Declaration
    public UInt32 randomSeed { get; set; }
    Property Value
    Type Description
    UInt32

    remainingLifetime

    Declaration
    public float remainingLifetime { get; set; }
    Property Value
    Type Description
    float

    rotation

    Declaration
    public float rotation { get; set; }
    Property Value
    Type Description
    float

    rotation3D

    Declaration
    public Vector3 rotation3D { get; set; }
    Property Value
    Type Description
    Vector3

    sizeMultiplier

    Declaration
    public float sizeMultiplier { get; set; }
    Property Value
    Type Description
    float

    sizeMultiplier3D

    Declaration
    public Vector3 sizeMultiplier3D { get; set; }
    Property Value
    Type Description
    Vector3

    startColor

    Declaration
    public Color32 startColor { get; set; }
    Property Value
    Type Description
    Color32

    startLifetime

    Declaration
    public float startLifetime { get; set; }
    Property Value
    Type Description
    float

    startSize

    Declaration
    public float startSize { get; set; }
    Property Value
    Type Description
    float

    startSize3D

    Declaration
    public Vector3 startSize3D { get; set; }
    Property Value
    Type Description
    Vector3

    totalVelocity

    Declaration
    public Vector3 totalVelocity { get; }
    Property Value
    Type Description
    Vector3

    velocity

    Declaration
    public Vector3 velocity { get; set; }
    Property Value
    Type Description
    Vector3

    Methods

    GetCurrentColor(ParticleSystemSharp)

    Declaration
    public Color32 GetCurrentColor(ParticleSystemSharp system)
    Parameters
    Type Name Description
    ParticleSystemSharp system
    Returns
    Type Description
    Color32

    GetCurrentSize(ParticleSystemSharp)

    Declaration
    public float GetCurrentSize(ParticleSystemSharp system)
    Parameters
    Type Name Description
    ParticleSystemSharp system
    Returns
    Type Description
    float

    GetCurrentSize3D(ParticleSystemSharp)

    Declaration
    public Vector3 GetCurrentSize3D(ParticleSystemSharp system)
    Parameters
    Type Name Description
    ParticleSystemSharp system
    Returns
    Type Description
    Vector3

    GetMeshIndex(ParticleSystemSharp)

    Declaration
    public int GetMeshIndex(ParticleSystemSharp system)
    Parameters
    Type Name Description
    ParticleSystemSharp system
    Returns
    Type Description
    int

    SetMeshIndex(int)

    Declaration
    public void SetMeshIndex(int index)
    Parameters
    Type Name Description
    int index

    SetParticleData(SparseTable, in Entry, bool, bool, bool, bool)

    Declaration
    public void SetParticleData(SparseTable sparseTable, in Entry entry, bool use3DRotation, bool use3DSize, bool useAxisOfRotation, bool useMeshIndex)
    Parameters
    Type Name Description
    SparseTable sparseTable
    Entry entry
    bool use3DRotation
    bool use3DSize
    bool useAxisOfRotation
    bool useMeshIndex

    SetParticleData(in SparseTable, ref Particle, in Entry, bool, bool, bool, bool)

    Declaration
    public static void SetParticleData(in SparseTable sparseTable, ref ParticleSystemSharp.Particle particle, in Entry entry, bool use3DRotation, bool use3DSize, bool useAxisOfRotation, bool useMeshIndex)
    Parameters
    Type Name Description
    SparseTable sparseTable
    ParticleSystemSharp.Particle particle
    Entry entry
    bool use3DRotation
    bool use3DSize
    bool useAxisOfRotation
    bool useMeshIndex

    use3DRotation()

    Declaration
    public bool use3DRotation()
    Returns
    Type Description
    bool

    use3DSize()

    Declaration
    public bool use3DSize()
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)