Search Unity

Visualizing dynamic objects in the editor

Discussion in 'Editor & General Support' started by xrm0, Aug 18, 2014.

  1. xrm0

    xrm0

    Joined:
    Feb 26, 2013
    Posts:
    86
    Problem: Playing with the idea of a 2D platformer I started doing some tests this last weekend and soon realized that putting all the tiles I needed to create the platforms was a time consuming task I didn't want to do.

    Solution: Create a Platform prefab with a "length" variable to set in the editor. This prefab creates the platform with the desired length using the needed tiles prefabs (the platform is created in Start()).

    Problem: The platform is not visible on the editor (it's not created yet). I don't want to loose all the nice things of having the editor and tweak the level with it.

    Solution: A platform mockup is created with some Gizmos.

    Below is the scene in the editor, with the gizmos:
    00-editor.png
    During play/pause:
    01-play.png



    Are there any simpler methods you know of visualizing these dynamic objects in the editor?
    I'm not interesed in using any kind of plugin and my question is not related exclusively on platforms but any kind of game using these method of content generation.
     
  2. xrm0

    xrm0

    Joined:
    Feb 26, 2013
    Posts:
    86