Coder Social home page Coder Social logo

Comments (3)

Seanba avatar Seanba commented on June 17, 2024

Hi Daniel, sorry for the late reply.

What if I were to put materials in resource folders automatically when you
decide to do so for the prefab? If the prefab is going to be in Resources
then we might as well do the same for materials too, right?

On Sun, Oct 23, 2016 at 7:58 AM, Daniel Pavón [email protected]
wrote:

Hi, sorry to trouble you with more procedurally generation-based issues,
but I think I might not be the only one who would like this feature.

The idea is: I'm importing maps with unity:resource = True (as discussed
on previous issues) to have them on a Resources folder, where I can
instantiate them whenever needed.

This time, however, I would like to change the "tileset" of the map on
execution. For this, I created a map with all possible tilesets, so that I
guarantee thay they are created by Tiled2Unity as a Material and Texture.
Materials are there, but I cannot change them in runtime as they do not
exist on a "Resources" folder.

I guess code would be very similar to that change I requested back then
with unity:resource. I went and changed method "GetMaterialAssetPath" so
that it would always save them on that folder. However, best approach would
be the same as with Prefabs, so adding an "extraPath" variable to mehtod
"GetPrefabAssetPath" would work.

Although I don't think a "property" per map is the way to go this time. If
one map uses tileset A with that property, and other does not have the
property, but uses the tileset, we would end up with duplicated materials.
Maybe a checkbox inside Tiled2Unity.exe?

Thanks again!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#64, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGqEFud-o_NjWzZQbnalfIe6pSxCgNOjks5q21n7gaJpZM4KeIBF
.

from tiled2unity.

dpavon avatar dpavon commented on June 17, 2024

Yeah sure. I guess we can assume people go either fully procedural or for static content, but not middle grounds, so it could be enabled for both Prefabs and Materials.

Thanks!

from tiled2unity.

Seanba avatar Seanba commented on June 17, 2024

Sorry I'm late on the update. But version of 1.0.9.1 of Tiled2Unity fixes this so that materials are placed in a Resources folder if the prefab is itself a resource.

from tiled2unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.