1
NGUI 3 Support / Where's ScreenToWorldPoint() ?
« on: April 23, 2017, 05:00:15 PM »
Okay am I going crazy, or does UICamera.ScreenToWorldPoint() not exist anymore?
error CS1061: Type `UICamera' does not contain a definition for `ScreenToWorldPoint' and no extension method `ScreenToWorldPoint' of type `UICamera' could be found. Are you missing an assembly reference?
- public UICamera uiCam; //assigned in editor
- Vector2 screenPos = (Vector2) Camera.main.WorldToScreenPoint(position);
- transform.position = uiCam.ScreenToWorldPoint(screenPos);
error CS1061: Type `UICamera' does not contain a definition for `ScreenToWorldPoint' and no extension method `ScreenToWorldPoint' of type `UICamera' could be found. Are you missing an assembly reference?
