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

UIEffect & UIHsvModifier & UITransitionEffect Strange action #144

Closed
jzgenius opened this issue Jan 14, 2019 · 10 comments
Closed

UIEffect & UIHsvModifier & UITransitionEffect Strange action #144

jzgenius opened this issue Jan 14, 2019 · 10 comments
Assignees
Labels
Milestone

Comments

@jzgenius
Copy link

jzgenius commented Jan 14, 2019

Describe the bug
Hi,
First of all, thank you for developing such helpful package.
And,
On Editor, single UI component + UIEffect components.
set effect value after, play, stop, the value not change, but effect strange changed.
please watch gif.

To Reproduce
Steps to reproduce the behavior:

  1. single UI component + UIEffect component.
  2. UIEffect & UIHsvModifier & UITransitionEffect all has this issue.

Environment (please complete the following information):

  • Platform: MacBook Pro 2018, macOS 10.14.2
  • Platform: Microsoft Surface Book2
  • Unity: 2018.3.0f2
  • UIEffect: v3.0.1 & develop Branch.

Additional context
If you fix these issues, please mail me how to fix. Thanks!
2019-01-14 14 31 45
2019-01-14 14 34 24
2019-01-14 14 36 50

@mob-sakai
Copy link
Owner

Hi @jzgenius
Thank you for reporting!

@mob-sakai mob-sakai self-assigned this Jan 14, 2019
@mob-sakai mob-sakai added the bug label Jan 14, 2019
@mob-sakai
Copy link
Owner

It was very easy to understand thanks to your plain explanation. :)

@jzgenius
Copy link
Author

hi, Is there a quick way to fix this issue?

@mob-sakai
Copy link
Owner

Call SetDirty on play mode changed.
That's all I can come up with at the moment.
I don't have my pc on hand now, so I'll try it later.

@jzgenius
Copy link
Author

Waiting for your good news and thank you for your reply.

@mob-sakai
Copy link
Owner

@jzgenius, I have a good news for you.
I found a way to fix this issue! :)

@jzgenius
Copy link
Author

hi,
That's great! profession! Efficient!
Can you tell me how to solve it.
^&^

@mob-sakai
Copy link
Owner

jan-15-2019 22-26-52

jan-15-2019 22-30-10

@mob-sakai
Copy link
Owner

mob-sakai commented Jan 15, 2019

I made a very simple mistake: I forgot to initialize the dirty flag when parameter texture is generated.

ParameterTexture.cs (line 168)

if (!_texture)
{
	_texture = new Texture2D(_channels / 4, _instanceLimit, TextureFormat.RGBA32, false, false);
	_texture.filterMode = FilterMode.Point;
	_texture.wrapMode = TextureWrapMode.Clamp;

	updates.Add(UpdateParameterTexture);
	_needUpload = true; // <<<< Need this line!
}

@mob-sakai mob-sakai added this to the v3.0.2 milestone Jan 15, 2019
@jzgenius
Copy link
Author

Understood, learned.
Thank you again for your work.
Best Regard!

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

No branches or pull requests

2 participants