Version: 2021.1

State

struct in UnityEngine

切换到手册

描述

用于保存随机数生成器完整内部状态的可序列化结构。另请参阅:Random.state

This is an opaque data structure intended for serialization (save and restore) purposes only. Its fields are all private and have no useful meaning on their own outside of the algorithm. A seed set with InitState, for example, cannot be retrieved after even a single iteration of the generator.

See Random for details on the algorithm.