Click or drag to resize

UnitsSplit Method

Split a string representation of a Vector (e.g a Vector3 will be represented as "1.1,1.2,1.3" or "1.1;1.2;1.3") using the Current Culture's "list separator" character into the individual components.

Fall back to trying the Invariant Culture separator (",") if different to the Current Culture one.

Namespace:  Demo3D.Utilities
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static string[] Split(
	string text,
	int componentCount = 3
)

Parameters

text
Type: SystemString
Text to split.
componentCount (Optional)
Type: SystemInt32
The number of components for the Vector. This is 3 by default to handle Vector3.

Return Value

Type: String
Array of strings returned after the split.
See Also