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

Things don't work as expected when using 'Screen Space -Camera' render mode. #45

Open
Benjiko99 opened this issue Apr 23, 2015 · 9 comments
Labels

Comments

@Benjiko99
Copy link
Contributor

Ripples don't render properly on some objects in the Game view (fine in Scene).

Gyazo

Gyazo
Here the first element doesn't work, and others only work when clicked on certain spots (not clicking on the icon in the first ones and not clicking on the text in the later ones).

@InvexGames InvexGames added the bug label Apr 26, 2015
@InvexGames
Copy link
Owner

I'll take a look when I can :)

@InvexGames
Copy link
Owner

I can't seem to reproduce this. Would you mind sending me a copy of your scene/project?

@Benjiko99
Copy link
Contributor Author

@dmxride
Copy link

dmxride commented May 12, 2015

Firs of all thanks a lot InvexGames, your hard work really helped out our team of university students with not that much time to develop an app ;)

Benjiko99, to solve your problem, when setting render mode to 'Screen Space -Camera' , you can just adjust the canvas plane distance to 40, worked for us :D

Good Luck ;)

@Benjiko99
Copy link
Contributor Author

@dmxride Changing the plane distance worked. The problem is that ripples are being created many units infront of where they should be, as seen here

@dmxride
Copy link

dmxride commented May 12, 2015

Yeap, i also had to set the camera to ortographic so it would work on different resolutions and i had to change the on Drag method from the script NavDrawerConfig.cs to this, else it would kinda be messed up

public void OnDrag(PointerEventData data)
{
tempVector2 = new Vector2 (thisRectTransform.position.x, thisRectTransform.position.y);
tempVector2.x += data.delta.x;

    //  thisRectTransform.position = tempVector2;

        backgroundCanvasGroup.alpha = 1 - (maxPosition - thisRectTransform.anchoredPosition.x) / (maxPosition - minPosition);
        shadowCanvasGroup.alpha = 1 - (maxPosition - thisRectTransform.anchoredPosition.x) / ((maxPosition - minPosition) * 2);
    }

@Benjiko99
Copy link
Contributor Author

I have actually posted a fix for the nav drawer 19 days ago :) https://github.com/InvexGames/MaterialUI/pull/44/files

@dmxride
Copy link

dmxride commented May 12, 2015

Yeap, awesome, better than my approach, thanks a lot @Benjiko99 ;)

@InvexGames
Copy link
Owner

Hi! Thanks for bringing this issue to my attention :)

I'm now working on MaterialUI in a private repo, adding features and the likes for an official release on the Asset Store - this means that I won't be adding/fixing anything more in this repo (sorry). Feel free to fork this one if you'd like to tackle to issue yourself, and/or send me an email at [email protected] if you want me to let you know when it's available.

Cheers,
Declan.

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

3 participants