Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
![Vector2 Array Resource Editor hero image](https://img.godotassetlibrary.com/v9d4xqHsVyY8BhD5RIolcO8Ge13Phauxr1Cz9kFBQK8/rs:fit:1920:1080:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0J1Z3dhbjkxL3ZlY3RvcjJfYXJyYXlfcmVzb3VyY2VfZWRpdG9yL21haW4vaW1hZ2VzL2VkaXRpbmdfcHJldmlldy5naWY.webp)
Quick Information
![Vector2 Array Resource Editor icon image](https://img.godotassetlibrary.com/F8h9eX4rNbr0U_fHX6SJNS2FklLOUJenCMjjytV6hRU/rs:fit:50:50:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0J1Z3dhbjkxL3ZlY3RvcjJfYXJyYXlfcmVzb3VyY2VfZWRpdG9yL21haW4vYWRkb25zL3ZlY3RvcjJfYXJyYXlfcmVzb3VyY2VfZWRpdG9yL2ljb24ucG5n.webp)
Godot plugin that allows to edit PackedVector2Array as a polygon in the 2D scene view.This plugin provides a new resource Vector2ArrayResource which contains a property data of PackedVector2Array type. The Vector2ArrayResource is a wrapper for PackedVector2Array. When this resource is added to a node, and it is active, the plugin will provide functionality for easy editing data of the array.
Vector2 Array Resource Editor
Godot plugin that allows to edit PackedVector2Array as a polygon in the 2D scene view.
Installation
- Manual: Download the source code and move only the addons folder into your project addons folder then enable plugin in Project -> Project Settings -> Plugins.
Usage
This plugin provides a new resource Vector2ArrayResource
which contains a property data
of PackedVector2Array
type.
The Vector2ArrayResource
is a wrapper for PackedVector2Array
.
When this resource is added to a node, and it is active, the plugin will provide functionality for easy editing data of the array.
Example
- Add a property of
Vector2ArrayResource
to your node
@export var polygon: Vector2ArrayResource
- Then you can get
PackedVector2Array
from like this:
func _ready():
# setuping polygon for CollisionPolygon2D node
collision_polygon_2d.polygon = polygon.data
There is a example scene in the example
folder.
Controls
Action | Key |
---|---|
Add vertex | left mouse click |
Remove vertex | right mouse click |
Move vertex | left mouse klick on vertex and drag |
Undo | Ctrl + Z |
Redo | Ctrl + Shift + Z |
Buy Me A Coffee
If you find this tool useful consider buying me a coffee:
Godot plugin that allows to edit PackedVector2Array as a polygon in the 2D scene view.
This plugin provides a new resource Vector2ArrayResource which contains a property data of PackedVector2Array type. The Vector2ArrayResource is a wrapper for PackedVector2Array. When this resource is added to a node, and it is active, the plugin will provide functionality for easy editing data of the array.
Reviews
Quick Information
![Vector2 Array Resource Editor icon image](https://img.godotassetlibrary.com/F8h9eX4rNbr0U_fHX6SJNS2FklLOUJenCMjjytV6hRU/rs:fit:50:50:0/g:no/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0J1Z3dhbjkxL3ZlY3RvcjJfYXJyYXlfcmVzb3VyY2VfZWRpdG9yL21haW4vYWRkb25zL3ZlY3RvcjJfYXJyYXlfcmVzb3VyY2VfZWRpdG9yL2ljb24ucG5n.webp)
Godot plugin that allows to edit PackedVector2Array as a polygon in the 2D scene view.This plugin provides a new resource Vector2ArrayResource which contains a property data of PackedVector2Array type. The Vector2ArrayResource is a wrapper for PackedVector2Array. When this resource is added to a node, and it is active, the plugin will provide functionality for easy editing data of the array.