Skip to content

Lacking properties for localPosition #4

@yiliansource

Description

@yiliansource

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions