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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...