I have added 100x100 Sprite objects into SpriteManager and set the properties “Draw Bounding Box” to true. In the editor, there is a yellow border showing the Bounding Box Area, is it possible to get it in the code ?
Yes, you can either expose the SpriteManager’s “meshRenderer” variable publicly by changing “protected” to “public” in its declaration in SpriteManager.cs, or else just use GetComponent() to get its SkinnedMeshRenderer component. Either way, once you have a reference to its mesh renderer, just use the .bounds property of that, like so:
mySprtMgr.meshRenderer.bounds
The “bounds” is a Unity bounding box (see the Unity docs for more on a bounding box).
BTW, be sure to check the SM2 forum here: forum.anbsoft.com