fehaar / FFWD

This is the FFWD framework for XNA, that allows you to port Unity3D games to XNA for use on WP7 or XBox360 (XBLIG)
Microsoft Public License
133 stars 36 forks source link

Issue or just understanding? #37

Open bigdaddio opened 12 years ago

bigdaddio commented 12 years ago

I went through getting started and with the example in the framework I did get my scene to pretty much load. I do have a few questions but one at a time.

Do the scripts all have to be in a single scripts folder? I often have a layout like this

-- Models ----modelA ----modelB ----etc --Scene ----SceneA ----SceneB --Scripts ----script ----script ----FOLDER -------some other script -------script --2Dscripts ----script ----script --prefabs ----thing ----thing ----FOLDER

I guess what I am asking is how can I add multiple paths to the script field in the converter? Will the converter read all sub folders and scripts? The same question would go for scenes etc.

Elideb commented 12 years ago

Only one scripts folder is recognized by the exporter, but it can be easily modified to fit your needs (check ExportSceneWizard.cs and the Exporter project).

In the project I am working on I have all those script subfolders directly under Scripts. This is a little worse than what I used to do (each specific enough object with its own Scripts subfolder, plus a common folder for shared scripts), but it works quite well with a little bit of organization.

I also store libraries as sources inside a subfolder in Scripts, although I am having some issues with using directives not being ported to XNA.

fehaar commented 12 years ago

I haven't tried this, but I think that if you just leave the scripts folder field empty, it will start from the root folder. When converting it will keep the folder structure from Unity in XNA.

Sendt fra min Windows Phone From: bigdaddio Sent: 13-04-2012 16:53 To: Thomas Gravgaard Subject: [FFWD] Issue or just understanding? (#37) I went through getting started and with the example in the framework I did get my scene to pretty much load. I do have a few questions but one at a time.

Do the scripts all have to be in a single scripts folder? I often have a layout like this

-- Models ----modelA ----modelB ----etc --Scene ----SceneA ----SceneB --Scripts ----script ----script ----FOLDER -------some other script -------script --2Dscripts ----script ----script --prefabs ----thing ----thing ----FOLDER

I guess what I am asking is how can I add multiple paths to the script field in the converter? Will the converter read all sub folders and scripts? The same question would go for scenes etc.


Reply to this email directly or view it on GitHub: https://github.com/fehaar/FFWD/issues/37