flightmare_unity
                                
                                
                                
                                    flightmare_unity copied to clipboard
                            
                            
                            
                        Allow spawning multiple prefabs
This PR deals with uzh-rpg/flightmare#77. More specifically it slightly changes the CameraController.cs script so that any prefab in the Templates folder can be spawned. All trailing white spaces in the modified sources were also removed.
A demo in flightmare (showing that these changes do work) is being proposed in the sibling PR uzh-rpg/flightmare#125.
@yun-long and @slimeth there are still 2 improvements that I would like to introduce, but I prefer having your feedback first:
- Currently, if you try to spawn a prefab not appearing in 
Templates, you will get arpg_gateinstead. I would prefer to create a new prefab, e.g., a cube with "404 not found" written on it, and spawn that instead. I think that showing such kind of object makes it much clearer that an error occurred. - Currently, you can only add objects, but I have already worked on a variant of the scripts that also allows to remove them. Do you think such a feature is desirable? If so, I'll polish my solution and add it to this PR.
 
Cheers!
Ping!
LGTM @francofusco regarding your improvement suggestions. I think both of them make sense and especially the features to remove objects is desirable.
Thank you for your great work!