Files

11 lines
372 B
Plaintext

URL: https://wiki.studiominus.nl/internalReference/ExistByChance.html
Title: People Playground Modding - ExistByChance
==================================================
public class ExistByChance
Inherits MonoBehaviour
Deactivates the GameObject if a random value is more than the given chance
Fields
public float Chance
[Range(0, 1f)]
Chance of this object being active