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

updating parameters via script #1

Open
sulram opened this issue Mar 16, 2016 · 1 comment
Open

updating parameters via script #1

sulram opened this issue Mar 16, 2016 · 1 comment

Comments

@sulram
Copy link

sulram commented Mar 16, 2016

hello @CiaccoDavide

I'm trying to change thickness and rotation from scripting and also from itween component.
Values are changing but not reflecting on the shape, they only reflect when I'm using the Inspector's sliders directly with the mouse.

I changed void Update method to public void Update and calling it from the script, but still not working.

Can you give some tips on how to change the parameters from code?

Thank you

Marlus

@sulram
Copy link
Author

sulram commented Mar 17, 2016

solved by creating a redraw method that calls SetVerticesDirty

public void Redraw(){
    SetVerticesDirty();
}

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