unitycoder / UnityMobilePaint

Public repository for MobilePaint issues & requests
https://www.assetstore.unity3d.com/en/#!/content/19803?aid=1101lGti
MIT License
49 stars 16 forks source link

Changing resolution (for example rotating screen) breaks things #3

Closed unitycoder closed 4 years ago

unitycoder commented 8 years ago

Because Screen.width is used on some parts of the code (values are taken before resize, and they are not updated on resize)

unitycoder commented 8 years ago

current workaround is to not allow resize or rotation.. (or reload scene after screen resize)

BelieveXiaoShuai commented 4 years ago

I am using this plugin to develop VR application, and i have this problem ,too. When I grab the quad(Paint Board) to move, I could not paint or paint line in chaos.

unitycoder commented 4 years ago

could try replacing anything with Screen.width and Screen.height, with your own fixed resolution

BelieveXiaoShuai commented 4 years ago

image What is wrong with it?

unitycoder commented 4 years ago

test disabling [x] connect lines or so, cant remember right now what was that issue, maybe in forum thread had something about it..

BelieveXiaoShuai commented 4 years ago

I find RaycastHitInfo.textureCoor is Vector2.zero sometimes.May be because of it. i disable connect lines and only could paint point instead of line.

BelieveXiaoShuai commented 4 years ago

I solved it. something with same layer upon it.

unitycoder commented 4 years ago

ok. yes, if raycast hits something else that could happen.