CharTweener icon indicating copy to clipboard operation
CharTweener copied to clipboard

Lacking properties for localPosition

Open yiliansource opened this issue 6 years ago • 0 comments

CharTweener.Properties is lacking the Get/Set methods for managing the proxy transform's localPositions.

As far as I can see, this can easily be implemented with:

public Vector3 GetLocalPosition(int charIndex)
{
    return proxyTransforms == null ? Vector3.zero : GetProxyTransform(charIndex).localPosition;
}

public void SetLocalPosition(int charIndex, Vector3 localPosition)
{
    GetProxyTransform(charIndex).localPosition = localPosition;
    _updateVerticesPending = true;
}

I've added it for me locally, but I guess it could be useful in the repo!

yiliansource avatar Nov 02 '19 16:11 yiliansource