docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ResetState

    ResetState()

    Resets a sampler's state to its base random seed. Note that there is no state to reset for ConstantSamplers.

    Declaration
    public void ResetState()
    Implements
    ISampler.ResetState()

    ResetState(int)

    Resets a sampler's state to its base random seed and then offsets said seed using an index value. Note that ConstantSamplers do not have random states.

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

    Often a the active scenario's currentIteration

    In This Article
    Back to top
    Copyright © 2024 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)