playMaker

Author Topic: ...just another big Custom Action collection  (Read 815 times)

Deek

  • Junior Playmaker
  • **
  • Posts: 71
    • View Profile
...just another big Custom Action collection
« on: July 14, 2017, 02:59:34 PM »
Since I work on a somewhat larger project for ~3 years I encountered all kinds of challenges to overcome and often times the default- and ecosystem-actions, even though large in numbers, couldn't suffice for all those hurdles.

That's why I had to help myself out and create or modify existing actions which I'd like to share with this community, because without PlayMaker and people contributing additional functionalities I wouldn't have even come close to an almost complete game.

I sorted them all in this GitHub Repository, added Screenshots of how the actions look including their description, so everything should be pretty self-explanatory when browsing through the folders:

GitHub:
https://github.com/justDeek/Useful-Unity-Utilities

Direct-Download Links:
https://tinyurl.com/y7mgd3mc

Of course I will still add more actions when I see the need for them during production and if you have any questions or want an action that works similar to the prevalent ones, ask right ahead.
If you found any errors or room for improvement, you can also point those out or try fixing themself in a GitHub commit.

A breakdown of all currently included actions (their purpose can be derived from their name or action-description):

Custom-ActionProbable-Usefulness-Rating (1=barely, 5=very)
Animator:
Get Animator Runtime Controller★★
Set Animator Runtime Controller★★
Applications:
Is On Platform Event★★★
Array List:
ArrayList Get Length★★★
Audio:
Int Switch AudioClip★★★★
Get AudioProgress★★★★★
Get AudioClip Length★★★
Get AudioClip Name★★
Device:
Get Device Linear Acceleration(not fully tested yet)
Get Device Roll Custom★★★
Swipe Gesture Event Advanced★★★★
Enum:
Enum Get Random★★
Get Enum As Array★★★★
Random Weighted Enum★★★
GameObject & UnityObject:
Destroy Children★★★★
Enable Children★★★★★
Get GameObject Sibling★★★★★
Get Multilevel GameObject★★★★★
Get Object Name★★★★
Activate Multiple Components★★★
Logic:
GameObject Compare Multi★★★★★
GameObject Is Visible Alternative
GameObject Is Visible Alternative 2D
Int Switch★★★
Math & Vectors:
Float Flip★★★★
Int Flip★★★★
Int Round To Nearest★★★★
Random Float On Slope★★★
Random Point On Slope★★
Random Weighted Vector3★★
Vector2 Operator Advanced★★★★
Vector3 Operator Advanced★★★★
Physics & Transform:
Enable Collider★★★★★
Enable Collider Multi★★★★★
Get Position Add Offset★★★★
Get Scale Add Offset★★★★
Set Position Multi★★
Random:
Random Float Around Range★★★★★
Random Int Around Range★★★★★
Random Wait Custom★★
Select Random AudioClip★★★★
Select Random Object★★★★★
StateMachine:
Debug Variable On Screen★★★★★
Send Event Multi★★★★
Send Event Random Delay★★★★
Send Event Set Value★★★★★
Send Event Set Multi★★★★
String:
Get String Numbers★★★★
String Contains Switch★★★★★
String Remove Chars★★★
String Replace Each Char★★★
String Switch Custom★★★★★
System & Time:
Countup Timer★★★★
Find Asset By Name★ (Editor only)
Get File Extension★★★
Get TimeScale★★★★
uGUI
Draw Fullscreen Color Advanced★★★
Remove Fullscreen Color★★
Set Sprite Color Custom★★
______________
     Third Party
¯¯¯¯¯¯¯¯¯¯¯¯¯¯
ANA:
ANA Non Redundant File
GDE:
GDE Add Float★★★
GDE Add Int★★★
GDE Add String★★★
GDE Bool Test★★★★
GDE Create Item★★★★★
GDE Find Item By Value★★★★
GDE Get Random Item★★★★★
GDE Get Schema By Item★★★★★
GDE Has Item★★★
GDE Load All Items By Schema★★★★
GDE Load All Keys By Schema★★★
GDE Load Schema List★★
GDE Load String List Custom★★★
GDE Multiply Float★★★
GDE Multiply Int★★★
NGUI:
NGUI Get Widget Details★★★★
NGUI Set Sprite Multiple★★★★
NGUI Set Sprite Size★★
NGUI Set Widget Alpha Multi★★★★
NGUI Set Widget Color★★★
NGUI Set Widget Details★★★★
NGUI Sprite Is Visible
NGUI Tools Add Child Advanced★★★★★
NGUI Tools Destroy Multi★★

Edit:
15.07.17:
- Added: Direct-Download Links since you can't download single files in GitHub
19.07.17:
- Added: Actions "Countup Timer", "Swipe Gesture Event Advanced" & Custom Menu options to quickly change between scenes with shortcuts
21.07.17:
- Added: GDE-Actions: "GDE Add Float", "GDE Add Int", "GDE Add String", "GDE Multiply Float", "GDE Multiply Int"
- Fixed: GitHub Screenshot-Previews, they should all be visible now
02.08.17:
- Added: "Activate Multiple Components" and several GDE-related Actions
28.08.17:
- Added: "GDE Find Item By Value", "NGUI Tools Destroy Multi", "Enum Get Random", "Get Enum As Array", "Random Weighted Enum", "Random Weighted Vector3"
09.10.17:
- Added: "NGUI Set Sprite Size", "NGUI Set Widget Color", "Get -" + "Set Runtime Animator Controller", "Get AudioClip Length", "Get Audio Progress", "Int Switch", "Set Position Multi", "Debug Variable On Screen", "Send Event Random Delay", "Send Event Set Multi"
- Re-arranged how the list is represented in this post
09.12.17:
- Added: "Random Float On Slope", "Random Point On Slope"
- Updated: "Countup Timer" (now supports to pause the timer, reset and restart on enter),
                  "Debug Variable On Screen" (added option to change the font size)
- Fixed: "Destroy Children"
- Reworked: "GDE Create Item" (removed the convenient custom inspector that showed which Schemas are available, because it brought more harm than good, but at least it works now better and is more performant)
If you still have the "GDECreateItemInspector.cs" file, remove it when you want to use the new "GDE Create Item" script
« Last Edit: December 10, 2017, 03:02:16 PM by Deek »

tcmeric

  • Sr. Member
  • ****
  • Posts: 484
    • View Profile
Re: ...just another big Custom Action collection
« Reply #1 on: July 14, 2017, 08:04:11 PM »
Awesome, looks like some great actions! Thank you for posting.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
    • View Profile
    • jinxtergames
Re: ...just another big Custom Action collection
« Reply #2 on: July 15, 2017, 09:30:27 AM »
Hi,
Wow a nice bunch of actions, i will certainly check them out.
May i add some of those on the Ecosystem?

Deek

  • Junior Playmaker
  • **
  • Posts: 71
    • View Profile
Re: ...just another big Custom Action collection
« Reply #3 on: July 15, 2017, 11:10:33 AM »
Hi,
Wow a nice bunch of actions, i will certainly check them out.
May i add some of those on the Ecosystem?
Sure thing, do as you please!
The GitHub Repository also contains all the preview pictures for the actions in the folder "Screenshots" if you want to include them for the Documentation-Button (the ?-Symbol on actions in the Ecosystem).

But I'm still unclear how the actions you choose to use could be updated if I improve or modify something inside of them... by replying to this post or is there another way?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
    • View Profile
    • jinxtergames
Re: ...just another big Custom Action collection
« Reply #4 on: July 15, 2017, 10:56:01 PM »
Hi,
Thx i will post when i added some actions.
(might take a while :) )

craigz

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
    • Haven Made
Re: ...just another big Custom Action collection
« Reply #5 on: December 06, 2017, 09:51:27 AM »
Hi Deek!

Just wanted to say this is an awesome list - and thanks for tuning me in about Game Data Editor! It's so crazy useful! :D

I am getting some errors specifically on the 'Destroy Children' action, any ideas for a quick fix?

Code: [Select]
UsefulUnityUtilitiesMaster/Custom PlayMaker Actions/GameObject & UnityObject Customs/DestroyChildren.cs(30,18): error CS1061: Type `UnityEngine.Transform' does not contain a definition for `DestroyChildren' and no extension method `DestroyChildren' of type `UnityEngine.Transform' could be found. Are you missing an assembly reference?
Let me know, these have been super useful :)

-craigz

Deek

  • Junior Playmaker
  • **
  • Posts: 71
    • View Profile
Re: ...just another big Custom Action collection
« Reply #6 on: December 09, 2017, 07:56:03 AM »
Whoopsie... Yeah that action used an extension method from NGUI which I haven't noticed (though it would be one from Unity's transform class).
Anyway, fixed it so it should work fine now. If you encounter further problems, please let me know; also I'm glad you find these helpful.

jellyam

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
Re: ...just another big Custom Action collection
« Reply #7 on: December 09, 2017, 09:09:39 AM »
thanks man, downloadign right now, can't to check 'em out

craigz

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
    • Haven Made
Re: ...just another big Custom Action collection
« Reply #8 on: December 09, 2017, 07:04:57 PM »
Wahoo! Awesome, thank you so much Deek! You rock :D was it updated via Github? Just pulled the latest and still no dice! D:
« Last Edit: December 09, 2017, 07:37:20 PM by craigz »

Deek

  • Junior Playmaker
  • **
  • Posts: 71
    • View Profile
Re: ...just another big Custom Action collection
« Reply #9 on: December 10, 2017, 04:35:31 AM »
The updated version is available on both ends.
The direct download links lag a bit behind since I usually only sync my changes at the end of the day or the morning after, but I will likely soon have a better way of providing these (or maybe push these to the Ecosystem).

For your convenience I put the updated script as an attachment to this post, so you don't have to skim through the folders again ;)

craigz

  • Junior Playmaker
  • **
  • Posts: 76
    • View Profile
    • Haven Made
Re: ...just another big Custom Action collection
« Reply #10 on: December 11, 2017, 07:10:51 PM »
Dahhhh! Deek you're the best :D thank you for making things so convenient :P

And heck yeah! Would love to see some of them on Ecosystem, they're so useful! Because it's easy to tell they were made to help actually MAKE a game, rather than just a mish mash of just cool utilities :P

**EDIT**
Oh noes! Getting this on reimport!

Code: [Select]
Assets/PlayMaker Custom Actions/UsefulUnityUtilitiesMaster/Custom PlayMaker Actions/GameObject & UnityObject Customs/DestroyChildren.cs(30,18): error CS1061: Type `UnityEngine.Transform' does not contain a definition for `DestroyChildren' and no extension method `DestroyChildren' of type `UnityEngine.Transform' could be found. Are you missing an assembly reference?

-craigz
« Last Edit: December 11, 2017, 07:41:07 PM by craigz »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2393
    • View Profile
    • jinxtergames
Re: ...just another big Custom Action collection
« Reply #11 on: Today at 01:37:45 AM »
Hi Deek.
Do you have some experience with github / sourcetree?

You can find several videos explaining how to use them, here's one of them :


Once you've got this setup you can get access by asking jean.

Once you got a repository the best thing to do is to open it with unity (as a project) and install playmaker.
For u5 repo's you need to install unity 5.6.4, for u4  repo's you need to install 4.7.2
you can install multiple versions on 1 machine.
rename the unity folders to (for example Unity4 , Unity5 , unity2017, unityBeta)

You can also drop the actions directly in the repo custom action folders but it is recommended to do it inside unity for minimizing errors.

In your action scripts you need to add :
Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2017. All rights reserved.
// Author : 'Your Playmaker username'
// supportUrl : 'url to the playmaker forum thread when available'
/*--- __ECO__ __PLAYMAKER__ __ACTION__ ---*/
The last line is mandatory, else the ecosystem won't find the action.

I had a lot of work going on so i did not have the time yet to check them out and add them to the Ecosystem, sorry for that.

For the 3rd party actions, maybe it is best to place then in a bundle package.
We will provide you an asset we are working on to simplify doing this.

Let me know if you need some help.
« Last Edit: Today at 01:45:17 AM by djaydino »