feat: add initial People Playground mod development kit
This commit is contained in:
21
extracted_wiki_content/internalReference/moddebugdrawer.txt
Normal file
21
extracted_wiki_content/internalReference/moddebugdrawer.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
URL: https://wiki.studiominus.nl/internalReference/ModDebugDrawer.html
|
||||
Title: People Playground Modding - ModDebugDrawer
|
||||
==================================================
|
||||
|
||||
public class ModDebugDrawer
|
||||
Utility class that helps the user do immediate drawing operations. An instance is available through ModAPI.Draw
|
||||
Methods
|
||||
public (constructor) ModDebugDrawer(Stack<System.Action> actions)
|
||||
Constructs a debug drawer
|
||||
|
||||
public void Line(Vector3 from, Vector3 to)
|
||||
Draw a line from one point to another
|
||||
|
||||
public void Rect(Vector3 center, Vector3 size)
|
||||
Draw a rectangle
|
||||
|
||||
public void Circle(Vector3 center, float radius)
|
||||
Draw a circle
|
||||
|
||||
public void Collider(Collider2D collider)
|
||||
Draw a 2D collider's actual hitbox. It supports BoxCollider2D, PolygonCollider2D, EdgeCollider2D, CircleCollider2D
|
||||
Reference in New Issue
Block a user