Last updated: Oct 19, 2022

Introduction

The Crosshair component helps with making sure that the on-screen crosshair changes its appearance based on different events in the asset.

You can find the Crosshair script ****at this path: Assets\Infima Games\Low Poly Animated - Modern Guns\Demo\Code\Interface\Crosshair.cs

Fields Serialized

holderTransform. Reference to the RectTransform that this component needs to modify in order to make the entire crosshair look bigger//smaller.

canvasGroup. Reference to the CanvasGroup component needed to modify the entire crosshair’s alpha value.

Fields

characterAnimator. Reference to the player character’s Animator component that drives everything in the asset.

currentSize. Represents the current size of the crosshair.

currentOpacity. Represents the current opacity of the crosshair.