Unity - Check if point is inside the camera view.First we will get the x, y coordinates of the camera relative to the Viewport this will ensure that we'll have the edges of the camera view no matter the aspect ratio of it. Ps. I use this Range struct just because i prefer to read min, max instead o...1 min read·edevjogos.hashnode.devNov 4, 2021
Unity Clamp CircleReturns min if value is over the max returns max if value bellow min.1 min read·edevjogos.hashnode.devSep 26, 2021
Unity Random Point Outside CameraFirst we will get the x, y coordinates of the camera relative to the Viewport this will ensure that we'll have the edges of the camera view no matter the aspect ratio of it. Ps. I use this Range struct just because i prefer to read min, max instead o...2 min read·edevjogos.hashnode.devSep 26, 2021
Unity Camera ShakeWell a resource that i use frequently in my games to get a better game feel of some events is camera shake. using UnityEngine; public class CameraManager : MonoBehaviour { private static bool _CameraShake; private static float _Strength; ...1 min read·edevjogos.hashnode.devSep 26, 2021
Unity SetAlphaUnity Image, SpriteRenderer, TMPro, SetAlpha();1 min read·edevjogos.hashnode.devSep 25, 2021