Last updated: Sep 11, 2022

Introduction

The Skin Random ScriptableObject helps a lot with storing multiple Skins and getting a random one easily. That’s basically the whole point of this.

It would’ve been the same thing to just hold all Skins inside of an array inside each Skinner component, but this seemed a bit more “modular”. Granted, there was basically no need for this to be modular really, as we made it with the intent of using it inside of our Art Packs…

Anyways. The point is that this class is pretty cool, really!

You can find the Skin Random at this path: Assets\Infima Games\Low Poly Animated - Modern Guns\Demo\Code\Skins\Skin Random.cs

Fields Serialized

Skins. Array of Skin values that this object is holding.

Functions

Get. Returns a random Skin value from the Skins array.