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.
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!)
Coming Soon. Unity provides a sample on the Asset store, it's currently under refactoring to provide it as a 100% PlayMaker solution.
- 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.
- Touch Object 2d Event
- Mouse Pick 2d
- Mouse Pick 2d Event
- Screen Pick 2d
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.
These packages are proudly automated using uTomate