Unity 2D is the new Unity 4.3 2D system.
DO NOT INSTALL THIS IN PLAYMAKER 1.8.1+ SINCE IT'S NOW BUILT IN.
Installation
Unity 2D support comes as a package with all the actions and tools needed. You can download the current package below:
Temp link for 2D Joint Property actions. (Will update package to include these soon!)
Demo
Coming Soon. Unity provides a sample on the Asset store, it's currently under refactoring to provide it as a 100% PlayMaker solution.
Support
- There is a good introduction from Jesse Freeman to get you up and running with how Unity 2D lets you define sprites and build your 2d world.
- There is a good in depth talk about making anims with spritesheets by Jeff Postma. I strongly suggest you check it out.
As For PlayMaker integration, Make use of the PlayMaker forum to ask questions, make comments, suggestions and share your knowledge.
Unity 2D Actions
Note: You can always access these pages right from Playmaker Action Editor by simply clicking on the little blue book icon with the question mark.
Device
- Touch Object 2d Event
Input
- Mouse Pick 2d
- Mouse Pick 2d Event
- Screen Pick 2d
Physics 2d
- Add Force 2d
- Add Torque 2d
- Collision 2d Event
- Get Collision 2d Info
- Get Mass 2d
- Get Next Line Cast 2d
- Get Next Overlap Area 2d
- Get Next Overlap Circle 2d
- Get Next Overlap Point 2d
- Get Next Ray Cast 2d
- Get Ray Cast Hit 2d Info
- Get Speed 2d
- Get Trigger 2d Info
- Get Velocity 2d
- Is Fixed Angle 2d
- Is Kinematic 2d
- Is Sleeping 2d
- Line Cast 2d
- Ray Cast 2d
- Set Gravity 2d
- Set Gravity 2d Scale
- Set Is Fixed Angle 2d
- Set Is Kinematic 2d
- Set Mass 2d
- Set Velocity 2d
- Sleep 2d
- Trigger 2d Event
- Wake All Rigid Bodies 2d
- Wake Up 2d
Scene Setup
In order for Fsm to receive Physics 2d global event, a "PlayMaker Unity 2D" Prefab needs to be present at all time in the scene.
Use the Menu "PlayMaker/Addons/Unity 2D/Components/Add PlayMakerUnity2D to Scene" to do so conveniently.
Game Object using Physics 2D Setup
In order for Fsm to receive Physics 2d global event, you need to drop a "PlayMakerUnity2DProxy" component on that GameObject. Then, any Fsm on that GameObject will be able to implement the global events "TRIGGER XXX 2D" and "COLLISION XXX 2D". The proxy is also used to store raycasting infos. Any other actions do not requires the proxy component, for example, AddForce2d works fine as is.
Use the Menu "PlayMaker/Addons/Unity 2D/Components/Add PlayMakerUnity2DProxy to Selection" to do so conveniently.
Physics 2D Events
- TRIGGER ENTER 2D
- TRIGGER EXIT 2D
- TRIGGER STAY 2D
- COLLISION ENTER 2D
- COLLISION EXIT 2D
- COLLISION STAY 2D
- These Physics events will be sent to All FSMs on GameObjects feature a Collider2D Component AND a PlayMakerUnity2DProxy Component. Use the actions "GetCollision2dInfo" and GetTrigger2dInfo" to retrieve data from the physics event.
Notes:
These packages are proudly automated using uTomate