Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lacking properties for localPosition #4

Open
yiliansource opened this issue Nov 2, 2019 · 0 comments
Open

Lacking properties for localPosition #4

yiliansource opened this issue Nov 2, 2019 · 0 comments

Comments

@yiliansource
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant