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

UIEffectCapturedImage.effectColor does not work as expected #148

Closed
HHHHHHHHHHHHHHHHHHHHHCS opened this issue Feb 14, 2019 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@HHHHHHHHHHHHHHHHHHHHHCS

UIEffectCapturedImage use serializedObject.FindProperty("m_Color"),but should use serializedObject.FindProperty("m_EffectColor"), so color mode is error.

and if you multiple clicks captures button. Maybe show an error :
Setting mipmap mode of already created render texture is not supported!UnityEngine.RenderTexture:set_useMipMap()Coffee.UIExtensions.UIEffectCapturedImage:Capture() (at Assets/Coffee/UIExtensions/UIEffect/Scripts/UIEffectCapturedImage.cs:346)UnityEditor.EditorApplication:Internal_CallDelayFunctions()

I modified the code to solve this problem.
void _Release(ref RenderTexture obj)
{
if (obj)
{
obj.Release();//my Add
RenderTexture.ReleaseTemporary (obj);
obj = null;
}
}

@mob-sakai mob-sakai self-assigned this Feb 14, 2019
@mob-sakai
Copy link
Owner

Hi @HHHHHHHHHHHHHHHHHHHHHCS
Thank you for reporting.
Clearly, they are bugs!

@mob-sakai mob-sakai added the bug label Feb 14, 2019
@mob-sakai mob-sakai changed the title Happy New Year ! UIEffectCapturedImage effectColor maybe have a bug. UIEffectCapturedImage.effectColor does not work as expected Feb 15, 2019
@mob-sakai mob-sakai added this to the v3.0.4 milestone Feb 15, 2019
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