Jump to content
Aveyond Studios Community
Amaranth

Change Enum & If Enum actions

Recommended Posts

This comes with two actions:

  • Change Enum
  • If Enum

These are just templates. If you want to use them, you will need to customize them for your enums. To install:

  1. Download file attached below. (Enum Actions.unitypackage)
  2. Open Unity.
  3. Click Assets > Import Package > Custom Package > and select Enum Actions.unitypackage.

To modify the Change Enum action:

  1. Rename Change Enum (action), ChangeEnum.cs, and ChangeEnumFields.cs. The new name should reflect the name of your enum.
    • Change Coin Face Enum 
    • ChangeCoinFaceEnum.cs
    • ChangeCoinFaceEnumFields.cs
  2. Open ChangeCoinFaceEnum.cs and:
    • Replace all instances of ChangeEnum with ChangeCoinFaceEnum. (3)
  3. Open ChangeCoinFaceEnumFields.cs and:
    • Replace all instances of ChangeEnumFields with ChangeCoinFaceEnumFields. (1)
    • On line 31, replace the sample enum values with your own.
  4. Open Change Coin Face Enum in HeroKit Editor.
    • Drag ChangeCoinFaceEnum.cs into the Action (this is used for gameplay) field.
    • Drag ChangeCoinFaceEnumFields.cs into the Action (this is used to create editor fields for the action) field.

Repeat these steps for If Enum.

If you run into problems, let me know.

Enum Actions.unitypackage

Share this post


Link to post
Share on other sites

@Ant,

Unfortunately away from home until Saturday now... but can see this will be v useful.

I see this is a Custom Action geared to a specific Enum but still extremely useful and moddable of course as needed...

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...