Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

How do I place a game object on a tile.

Discussion in 'Scripting' started by mdietz753, Nov 10, 2018 at 1:48 PM.

  1. mdietz753


    Aug 19, 2018
    Hello, everybody,

    I try to place objects on single tiles with the mouse.
    I can display the coordinates of the respective tile with a mouse click (e.g. left click = -8, 13).
    I can click on the item in my inventory and it follows the mouse.
    But I just can't get any further, how can I get the object to be placed on exactly this tile (Sprite changes and a suitable game object is created)?

    If anyone could help me figure out how to connect the Gameobject with my value
    "Vector3Int coordinate" that would help me a lot! :)

    Many thanks in advance!