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: 19.00.00
Syntax
C#
public static string[] Split(
	string text,
	int componentCount = 3
)

Parameters

text  String
Text to split.
componentCount  Int32  (Optional)
The number of components for the Vector. This is 3 by default to handle Vector3.

Return Value

String
Array of strings returned after the split.
See Also