Jump to content
Aveyond Studios Community
Duffer123

Variable Conversion HeroActions

Recommended Posts

@Ant, All,

Attached are 9 HeroActions (in a Unity Package) allowing for conversion of Integers, Floats or Strings in to Strings, Floats or Integers and conversion of Bools to 3 different types of Strings.

This is the list of custom HeroActions created:-

- Convert Integer (to Float);

- Convert Float (to Integer);

- Convert Float (to String);

- Convert String (to Float);

- Convert Integer (to String);

- Convert String (to Integer);

- Convert Integer (to Colour);     // assuming we might get a Colour variable //

- Convert Colour (to Integer);     // assuming we might get a Colour variable //

- Convert Bool (to String 01);     // so if bool is 0 then string is '0', if bool is 1 string is '1' //

- Convert Bool (to String OnOff);     // so if bool is 0 then string is 'off', if bool is 1 string is 'on' //

- Convert Bool (to String YesNo);     // so if bool is 0 then string is 'no', if bool is 1 string is 'yes' //

[edit]  04/11/2017

I've added four more Conversion custom HeroActions to allow functionality with Binary and Hexidecimal strings...

- Convert Integer (to Binary String);     // to convert an Integer in to a Binary String //

- Convert Binary String (to Integer);     // to convert a Binary String in to an Integer //

- Convert Integer (to Hex String);     // to convert an Integer in to a Hexidecimal String //

- Convert Hex String (to Integer);     // to convert a Hexidecimal String in to an Integer //

 

Let me know if I have got it all correct and if anything could be amended.

 

 

HeroKit Actions - Conversion Actions - v1.1.unitypackage

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×