SpriteText.GetNearestInsertionPointPos C# (CSharp) Method

GetNearestInsertionPointPos() public method

Returns both the world-space position of the insertion point most nearly matching the specified point, as well as the index of the character to the left of which the insertion point corresponds.
public GetNearestInsertionPointPos ( Vector3 point, int &insertionPt ) : Vector3
point Vector3 A point, in world space, from which you want to find /// the nearest insertion point.
insertionPt int OUT: Will hold the index of the character to /// the left of which the insertion point will be. If the insertion point is /// at the end of the string, this value will be one greater than the index /// of the last character.
return Vector3
	public Vector3 GetNearestInsertionPointPos(Vector3 point, ref int insertionPt)
	{
		insertionPt = GetNearestInsertionPoint(point);
		return GetInsertionPointPos(insertionPt);
	}