gizmos properties to isoworld

This commit is contained in:
2016-12-15 01:12:05 +07:00
parent b79a1adcd4
commit 2ff0b86135
4 changed files with 438 additions and 51 deletions

View File

@@ -310,6 +310,31 @@ namespace IsoTools {
return IsoUtils.Vec3Floor(MouseIsoPosition(camera, iso_z));
}
// ---------------------------------------------------------------------
//
// For editor
//
// ---------------------------------------------------------------------
#if UNITY_EDITOR
[Header("Editor Only")]
[SerializeField] bool _showIsoBounds = false;
public bool isShowIsoBounds {
get { return _showIsoBounds; }
set { _showIsoBounds = value; }
}
[SerializeField] bool _showScreenBounds = false;
public bool isShowScreenBounds {
get { return _showScreenBounds; }
set { _showScreenBounds = value; }
}
[SerializeField] bool _showDepends = false;
public bool isShowDepends {
get { return _showDepends; }
set { _showDepends = value; }
}
#endif
// ---------------------------------------------------------------------
//
// Internal