Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - huminaboz

Pages: [1]
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?

  1. public UICamera uiCam; //assigned in editor
  2. Vector2 screenPos = (Vector2) Camera.main.WorldToScreenPoint(position);
  3. 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?

Pages: [1]