// Load the library. void Start() { ml = new MultiStrokeLibrary(libraryToLoad, forceCopy); strokes = new List <GameObject>(); if (gestureLimitType == GestureLimitType.RectBoundsClamp) { parentCanvas = gestureLimitRectBounds.GetComponentInParent <Canvas>(); gestureLimitRect = RectTransformUtility.PixelAdjustRect(gestureLimitRectBounds, parentCanvas); gestureLimitRect.position += new Vector2(gestureLimitRectBounds.position.x, gestureLimitRectBounds.position.y); } }
// Load the library. void Start() { ml = new MultiStrokeLibrary(libraryToLoad, forceCopy); strokes = new List <GameObject>(); multiStrokePoints = new List <MultiStrokePoint>(); }