Prefab - Instances having individual features

Dear community,

I’m having a prefab of a cam, I already placed it about 10 times into my game environment. During runtime I’d like to initialize each with an individual (random) ID. Is this possible since they are “just” instances?
Or how can I do this already before running the game?

I’m using Playmaker and C#

thanks to all hints :wink:
MW

When you instantiate an object you can later access its component (for example script attached to object where you have variable called id) and set the variable.

GameObject object = Instantiate(prefab, position, rotation) as GameObject;
Your_Script script = object.GetComponent<Your_Script >();
script .Id = your_random_id;

Something like this :slight_smile:

Thank’s, I’ll try!