Open MrRowey opened 6 months ago
It would need something such as this:
Which allows you to receive events when a file is changed on disk. Files are changed often when using procedural software such as Gaea, usually decals and/or map-wide content that are prime candidates for this.
Based on the reload function here:
The current data is defined here:
With the terrain textures defined here:
With the class responsible for the textures being here:
My suggestion would be to do the following steps, in separate pull requests:
TerrainTexture
class so that it detects a change. It doesn't need to do anything with it; just print it and show that it functionally works. The paths to check are in the same class. That would be your first pull request.TerrainTexture
class so that it reloads the texture from disk. Reloading in this context means re-populating the corresponding Texture2D
field. This would be the first commit in your second pull request.scmap
the editor needs to know the path. This would be your third pull request.I hope that gives you a direction. Note that I have not worked with the code that much, which means that the suggestions may be wrong.
@Garanas could you please provide a short description on the how the desired outcome would look