快速連結

2016年8月10日

【筆記】在Orthographic camera中取得寬高

筆記來源 how to get the width and height of a Orthographic camera.


Camera cam = Camera.main;
 float height = 2f * cam.orthographicSize;
 float width = height * cam.aspect;

沒有留言:

張貼留言

歡迎大家留言提問,我會答的都會盡力回答!
如果太久沒出現回應就是我又忘記回來看留言了TAT