Quantcast
Viewing latest article 2
Browse Latest Browse All 42

Assigning prefabs to player script properties at runtime

The player object has a script attached to it which contain 3 public variables, representing three different weapons the player can use. The weapons are many different prefabs which will constantly change during runtime, so my question is how can I assign these weapon prefabs to the player at runtime (and access their scripts) when they don't technically exist yet?


Viewing latest article 2
Browse Latest Browse All 42

Trending Articles