- Home /
Moving a inspector slider to add objects to the scene
So I have this line of code
[Range(0, 10)] [Tooltip("How many of the Enemy do you want to spawn")] public int Amount;
and what I want now is the ability for this slider to also show me, in the scene, the spawn points of the enemies. Basically, if I slide the slider to 1, I want to show me one object. If I slide the slider to 5, I want it to show me 5 objects.
An example of exactly of what I mean is below I want to know how to script it correctly so I can get that result.
Answer by CriticalAngleStudios · May 01, 2019 at 02:16 AM
Ok, so... this is complicated but it's possible. Brackeys has a video on this exact topic and he explains it perfectly (And it's still up to date) Here it is: Brackeys Video
The video was perfect, thank you! Right now trying to see how I can implement it but I've got ideas and the video was what I needed to start experimenting.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
10 levels in a 1 scene ? 2 Answers
Click handling at world scene level 1 Answer
Block Game Object interaction with another Game Object with kinematic active 0 Answers