SubstanceTween 2.3
• Upgraded Unity to 5.5
• Removed old/useless code
• Made new functions called AddProceduralVariablesToList and SetProceduralVariablesFromList so I don’t have to keep writing the same code every time I want to add or set Procedural variables to or from a list.
• Changed "Lerp Time" label/variable to "Animation time" to make it less confusing to users.
• Made it so creating a second transition would not animate automatically, you now have to create 2 transitions and then click on the "Toggle Animation on/off" button.
• Added colors to the transition and animation buttons. When you create a first or second transition the font color will turn green to indicate you have created a keyframe. When you create two transitions the "Toggle Animation on/off" button will change from red to green. When the button is green it means that you can create an animation from the two keyframes you made.
• Fixed bug where setting Animation Time to 0 or making it have no value would crash unity (It would try to divide by 0) The animation time field also supports basic operations (5*2, 10/2, 10%4).
• When creating a debug log if two lines right next to each other are the same it will only write one of them.
• Fixed bug where creating or reading XML file it would tell you the amount of float properties is the same as the amount of total properties.
• Added a Header for the tool
• When you Create a transition or a XML file it will now add the name of the material as “PropertyMaterialName”.
• Fixed bug when creating an animation and selecting another object, the new object would try to animate based on values of the last selected object. Now when you select “Toggle Animation” it will compare the name of the substance material and PropertyMaterialName(you save this when you create a transition) if the values are different it will give you a chance to rename it
• Added “Rebuild Textures Immediately” Button to Tool and Created Prefab. Having this on will Trigger an immediate rebuild of this ProceduralMaterial and will Cause FPS to drop.
• Fixed bugs when pausing the game and selecting other objects.
• Fixed bug where you couldn’t create a second transition before the first.
• I created myKeys and myValues list so that I can set the parameters based on the parameter name. This allows the user to switch the order of the parameters in substance designer and bring it back in Unity to make changes without messing up the values, The PropertyName, PropertyFloat, PropertyColor, PropertyVector lists will now only be used for keeping track of the different types and amounts of variables. At the moment this does not work with variables that have been renamed, you will have to manually rename the variables in the XML file.
• Added fps counter near sun controller (worldGUI script) (http://wiki.unity3d.com/index.php?title=FramesPerSecond)
• Fixed bug where I was accidently updating Procedural Material twice per frame.
• Added buttons to select the transitions you have created as well as a button to delete them.
• When you create a prefab it saves the animation time.
• Added Feature/ Fixed bug: When Writing xml files it would add parameter types with no range ($outputSize, $pixelSize, $RandomSeed) this could slow down your animation and make it choppy (loading a 4096x4096 animation on a material that is meant to be 1024x1024 ) Saving these parameters could be useful so I made a toggle button called ‘Save Output Parameters’
• Added support for Unity 5.3. In 5.4 and 5.5 I use RebuildTextures() instead of RebuildTexturesImmediately() when updating materials because it is faster.
RebuildTextures() is not supported in 5.3 when I use it in Update() so I made a conditional statement that detects what version of Unity you are using.