Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't select Grid prefab for project

See original GitHub issue

I’m trying to use a different grid prefab for my levels, but the selector for Grid Prefabs isn’t showing any assets, not even the default LDtkDefaultGrid. I’m guessing it can’t see the prefabs because they’re a GameObject and just contain a Grid, whereas the asset picker is filtering for type Grid.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

Cammincommented, Apr 22, 2021

I believe I have a solution concerning int grid values. I’ve been exploring Unity Tilemaps API more and discovered that Tiles utilize an inherited TileBase, which essentially means that any sort of custom scripting could be set up for tiles, whether it’s art, creating game objects, collision shape via sprite, even animated tiles. 😃
Unity docs for inheriting from TileBase here.

Also, to help allow JSON data to be communicated to the tiles during the level building process, I’m going to experiment with either an extra layer of inheritance (ex. LDtkTile) or using interfaces (ex. ILDtkTileColor, ILDtkIntGridValue). If this idea doesn’t work out then I’ll try something else.

I’m going to add this TileBase field when I get around to it and see how it works out. It’s not on my agenda right now but something I want to add to the project pretty soon. It might even show up next update; we’ll see as time tells.

I believe this will help out with achieving your own goals with int grid value tiles. It lends itself to a more “open nature”. 🙂

Cammincommented, Jun 6, 2021

I’m leaving this issue as resolved, but feel free to reopen (or post new different issue) if necessary 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable To Select Gridlines - Autodesk Community - Revit ...
Solved: Hello This is probably a simple one - how do I select the gridlines in the opening view of the attached project?...
Read more >
can't modify gridlines
In all of the tutorials, it's easy: just click on the gridline, and the modification points and lock symbol show up, but not...
Read more >
Manual: Editing a Prefab in Prefab Mode
If you need to edit them, you can either open the Prefab in isolation, or select the Prefab Asset in the Project window...
Read more >
How to snap dragged prefab to the grid in Unity - YouTube
Your browser can't play this video. Learn more. Heightened focus.
Read more >
Prefab Pick & Place
Prefab Pick & Place lets you select prefab from scene view instead of drag and drop from project view. Asset Store [ATTACH] Press...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found