Example #1
0
    public void StrokeText(PFString str, Vector2 position)
    {
        EnsureHandleIsValid();
        var pfVector = PFUnityConv.PFVector2F(position);

        PF.PFCanvasStrokeText(handle, str.handle, str.len, ref pfVector);
    }
Example #2
0
    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.");
 }