示例#1
0
		protected U.Rect GetPositionedRect(E.SceneView sceneView)
		{
			U.Vector3 _screenPoint = sceneView.GetScreenPosition(m_position ?? U.Vector3.zero);
			U.Rect _positionedRect = ((U.Rect) m_rect);
			if (m_position != null) {
				_positionedRect.x += _screenPoint.x;
				_positionedRect.y += _screenPoint.y;
			}

			return _positionedRect;
		}