Giter Club home page Giter Club logo

flax-auto-import-resources-plugin's Introduction

Auto Import Resources Plugin

Automagically imports everything from the Assets folder into Content/Imported. Whenever you change something, it re-imports it.

Want to contribute?

Check out the documentation on Flax plugins. This one is an editor plugin.

Clone the project and open it in Flax. Then, check out the code in Source/Editor. It currently has 4 files

flax-auto-import-resources-plugin's People

Contributors

stefnotch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

flax-auto-import-resources-plugin's Issues

Folder Sync

Currently it only keeps the files in sync. Ideally, it would also synchronize the folder structure.

Ignore files

Sometimes there are files in the Assets folder that really shouldn't get imported. For example, a Readme.md file.

Change file structure

So, basically we've (my gamedev team) dropped the idea to separate models like this.
And currently using something like this:
Content/Assets/Characters/Knight/
Models/KnightModel.flax
Textures/KnightBodyDiffuse.flax
Materials/...
TPVKnightPrefab.flax
KnightSettings.flax
Content/Assets/Weapons/LongSword1/
Models/LongSword1Model.flax
Textures/LongSword1Diffuse.flax
Materials/...
TPVLongSword1Prefab.flax
LongSword1Settings.flax
Where Content is the Flax's default root dir.
-- Erdroy

One thing the plugin could automatically do would be name-prefixing. So you could have
Knight/Textures/Body Diffuse.png and it would turn into Knight/Textures/Knight Body Diffuse.flax

Only store import settings

Currently, when you import a file (say .png), you'll end up with a binary .flax file. This file stores the image and the import settings.
Combined with an auto importer, the .flax file is a partially auto-generated file. So, I was wondering if it's possible to only store the import settings in a GitHub repository and how you would go about doing so?

It seems like it could work like this (names are subject to change)

  • /Source/Assets: Original files
  • Somewhere: Import settings?
  • /Content/Imported: Imported files

It could be added to the .gitignore, however that requires super deterministic importers that don't change across versions.

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.