Open Shadowblitz16 opened 4 years ago
Maybe it would make sense to add a method that sets a SpriteRenderer's Rect to the values obtained from the currently assigned Material/BatchInfo.
Something like a public void UseNativeSize(Alignment alignment)
where Alignment is used to define the origin of the Rect.
Possibly add a button to call it from the editor as well, defaulting to Centered?
idk though I do think that it being centered and the aspect ratio mode should be separate.
Summary
Add keep aspect ratio for sprite renderer this would basically make sure the rect is always centered and and has the same size as the current texture frame.
Analysis
Pros
Cons
Attachments
-Now![image](https://user-images.githubusercontent.com/2453707/77258551-82ffec00-6c38-11ea-90da-3b911684a993.png)
-What it could be![image](https://user-images.githubusercontent.com/2453707/77258556-8b582700-6c38-11ea-9c72-7fca52935600.png)