Skip to main content

Vector Text

namespace: qASIC

Introduction

This class is used for converting Vectors to and from string using a friendly format.

Format

VectorText
Vector2(1f, 2f)1x2
Vector2Int(1, 2)1x2
Vector3(1f, 2f, 3f)1x2x3
Vector3Int(1, 2, 3)1x2x3
Vector4(1f, 2f, 3f, 4f)1x2x3x4

Usage

To convert a vector to text use VectorText.ToText and to convert text to vector use VectorText.ToVector or VectorText.TryToVector.