Week Three - Implement a ScriptableWizard editor tool
Introduction
After the compounding experience from the first two weeks, the third week would have myself finally implementing an editor tool to show case my code contributions in the 'SGD300 Spike' collection using the ScriptableWizard class in unity.
Goals
- Implement a ScriptableWizard editor tool to show case my code contributions from the 'SGD300 Spike' collection.
Personnel
Primary - Zackery Camille [1095725]
Secondary - Christian
Technologies, Tools, and Resources used
Tasks Undertaken
- Follow the steps taken in the 'Tutorial - Creating Basic Editor Tools' source from the CreateCharacterWizard section onward.
- Where appropriate substitute your own values in place of the ones used in the 'Tutorial - Creating Basic Editor Tools' source.
- Inside of the 'OnWizardCreate()' method insert the relevant code from the 'Start' methods find in either the 'CSV_JSON_CONVERSION' and/or the 'JSON_Reader' scripts.
- When the 'OnWizardCreate()' button is pressed it will initiate the code inside of the method.
- Add the rest of the code from either the 'CSV_JSON_CONVERSION' and/or the 'JSON_Reader' scripts to the ScriptableWizard script.
- Add the remainder of the code inside of the ScriptableWizard script's main class and other classes just below the main one.
- After all the code is transferred into the new ScriptableWizard script remove either or both the 'CSV_JSON_CONVERSION' and/or the 'JSON_Reader' scripts as the ScriptableWizard tool is a more viable solution.
Solution Justification
Creating ScriptableWizard tools to perform the CSV to JSON process is more viable of a solution than the 'CSV_JSON_CONVERSION' or the 'JSON_Reader' scripts themselves because the two scripts mentioned reference the 'Monobehaviour' class. This subjects the scripts code to only be executed on 'Start' as oppose to the editor tool being freely run at any time.
However the solution at the end of week three still isn't a perfectly viable end solution as the code has been hard coded to only ever being able to consume one specific csv or json file at a time. Which means each time there is a need for a new csv or json file, a new editor tool is needed in order to handle the new file. This shortcoming was realised to late in the week to be able to rework the code to be more dynamic and so will become a future project to tackle.
Get SGD300 Unity Editor tools
SGD300 Unity Editor tools
Status | Released |
Category | Tool |
Author | Duck Pond Studios |
More posts
- Week One - Research into Unity editor toolsOct 25, 2019
- Week Two - Begin implementing an editor toolOct 25, 2019
Leave a comment
Log in with itch.io to leave a comment.