docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NativeMinMaxGradient

    Implements
    IDisposable
    Namespace: NativeParticleSystemGradient
    Assembly: solution.dll
    Syntax
    public struct NativeMinMaxGradient : IDisposable

    Constructors

    NativeMinMaxGradient(in NativeGradient, in NativeGradient, AllocatorHandle)

    Declaration
    public NativeMinMaxGradient(in NativeGradient minGradient, in NativeGradient maxGradient, AllocatorManager.AllocatorHandle allocatorHandle)
    Parameters
    Type Name Description
    NativeGradient minGradient
    NativeGradient maxGradient
    AllocatorManager.AllocatorHandle allocatorHandle

    NativeMinMaxGradient(in NativeGradient, AllocatorHandle)

    Declaration
    public NativeMinMaxGradient(in NativeGradient gradient, AllocatorManager.AllocatorHandle allocatorHandle)
    Parameters
    Type Name Description
    NativeGradient gradient
    AllocatorManager.AllocatorHandle allocatorHandle

    NativeMinMaxGradient(in SharpMinMaxGradient, AllocatorHandle)

    Declaration
    public NativeMinMaxGradient(in ParticleSystemSharp.SharpMinMaxGradient unityGradient, AllocatorManager.AllocatorHandle allocatorHandle)
    Parameters
    Type Name Description
    ParticleSystemSharp.SharpMinMaxGradient unityGradient
    AllocatorManager.AllocatorHandle allocatorHandle

    NativeMinMaxGradient(in Color)

    Declaration
    public NativeMinMaxGradient(in Color color)
    Parameters
    Type Name Description
    Color color

    NativeMinMaxGradient(in Color, in Color)

    Declaration
    public NativeMinMaxGradient(in Color min, in Color max)
    Parameters
    Type Name Description
    Color min
    Color max

    Fields

    allocatorHandle

    Declaration
    public AllocatorManager.AllocatorHandle allocatorHandle
    Field Value
    Type Description
    AllocatorManager.AllocatorHandle

    colorMax

    Declaration
    public float4 colorMax
    Field Value
    Type Description
    float4

    colorMin

    Declaration
    public float4 colorMin
    Field Value
    Type Description
    float4

    gradientMax

    Declaration
    public IntPtr gradientMax
    Field Value
    Type Description
    IntPtr

    gradientMin

    Declaration
    public IntPtr gradientMin
    Field Value
    Type Description
    IntPtr

    mode

    Declaration
    public ParticleSystemGradientMode mode
    Field Value
    Type Description
    ParticleSystemGradientMode

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Evaluate(float, float)

    Declaration
    public readonly float4 Evaluate(float time, float lerpFactor = 1)
    Parameters
    Type Name Description
    float time
    float lerpFactor
    Returns
    Type Description
    float4

    Evaluate(in float8, in float8)

    Declaration
    public readonly float4x8 Evaluate(in float8 time, in float8 lerpFactors)
    Parameters
    Type Name Description
    float8 time
    float8 lerpFactors
    Returns
    Type Description
    float4x8

    EvaluateBatch(NativeArray<float>, NativeArray<float4>, NativeArray<float>)

    Declaration
    public readonly void EvaluateBatch(NativeArray<float> times, NativeArray<float4> values, NativeArray<float> lerpFactors = null)
    Parameters
    Type Name Description
    NativeArray<float> times
    NativeArray<float4> values
    NativeArray<float> lerpFactors

    EvaluateSOA(in float8, in float8)

    Declaration
    public readonly float8x4 EvaluateSOA(in float8 time, in float8 lerpFactors)
    Parameters
    Type Name Description
    float8 time
    float8 lerpFactors
    Returns
    Type Description
    float8x4

    UnsafeEvaluateBatch(in float*, in float4*, int, in float*)

    Declaration
    public readonly void UnsafeEvaluateBatch(in float* times, in float4* values, int count, in float* lerpFactors = null)
    Parameters
    Type Name Description
    float* times
    float4* values
    int count
    float* lerpFactors

    Implements

    IDisposable

    Extension Methods

    NativeParticleSystemGradientExtensions.ToOptimized(NativeMinMaxGradient, in AllocatorManager.AllocatorHandle)
    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)