The RadiusComponent class has a useful static method to get the radius of a game object: float radius = RadiusComponent.GetRadius(gameObject); If a Radius component is attached, it'll return it's radius, otherwise 0.
To access it, you need to use this namespace: using GamingIsLove.Makinom.Components;
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
float radius = RadiusComponent.GetRadius(gameObject);
If a Radius component is attached, it'll return it's radius, otherwise 0.
To access it, you need to use this namespace:
using GamingIsLove.Makinom.Components;
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!