Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
coding2233 committed Nov 29, 2017
1 parent b885314 commit 0bec708
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/TextInlineSprite/Scripts/InlineManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ public void UpdateTextInfo(int _id,InlineText _key, List<SpriteTagInfo> _value)
//新增摄像机模式的位置判断
if (_key.canvas != null)
{
if (_key.canvas.renderMode == RenderMode.ScreenSpaceCamera)
if (_key.canvas.renderMode != RenderMode.ScreenSpaceOverlay)
{
_disPos = _disPos / _key.canvas.transform.localScale.x;
Vector3 _scale = _key.canvas.transform.localScale;
_disPos = new Vector3(_disPos.x / _scale.x, _disPos.y / _scale.y, _disPos.z / _scale.z);
}
}

Expand Down

0 comments on commit 0bec708

Please sign in to comment.