public void StrokeText(PFString str, Vector2 position) { EnsureHandleIsValid(); var pfVector = PFUnityConv.PFVector2F(position); PF.PFCanvasStrokeText(handle, str.handle, str.len, ref pfVector); }
public PFTextMetrics MeasureText(PFString str) { EnsureHandleIsValid(); var textMetrics = new PFTextMetrics(); PF.PFCanvasMeasureText(handle, str.handle, str.len, ref textMetrics); return(textMetrics); }
// Start is called before the first frame update void Start() { gState = globalState.GetComponent <GlobalStateScript>(); instructions = new PFString("Press “" + InputScript.pathfinderToggleKey + "” to toggle Pathfinder."); }