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

Bugged images after binding a Sprite in Image Component using OneWayPropertyBinding #30

Open
Gradir opened this issue Feb 25, 2019 · 3 comments

Comments

@Gradir
Copy link

Gradir commented Feb 25, 2019

When using One Way Property Binding to bind a public bindable Sprite property from my ViewModel it seems Weld is overriding something more than just the sprite itself, as I it stops resizing to RectTransform properly as it should be and also the image is stretched despite being set to constrain original proportions.
I'm using Unity Beta 2019.1.0b4, which also can generate problems, but all the images without binding act properly.

@Gradir
Copy link
Author

Gradir commented Feb 25, 2019

The funny thing is that binding an overrideSprite property works well. It's probably the best way to bypass the problem for now

@Gradir
Copy link
Author

Gradir commented Mar 12, 2019

The problem probably derives from a Collection Binding to a template using a child View-Model, as it works well with the original sprite in the gameobject. As soon as we do a one-way property binding of the sprite in the Image component and change it to other sprite that way, the things get buggy. You cannot event set the color of the sprite anymore

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

2 participants
@Gradir and others