Last updated: Sep 7, 2022

Introduction

The Attachment Behaviour abstract class exists with the sole purpose of acting as a base class for the Attachments script. It defines what an Attachments class needs and allows us to override its functions with whatever we want, in our case we do this in that aforementioned Attachments class.

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

Functions

Get Variant. Returns the Attachment variant that was spawned for the given Type input.

Get Variant <T>. Returns a component on the Attachment variant that was spawned for the given Type input.

Get. Returns the Attachment value for a given Type.

Methods

Randomize. Randomizes the spawned Attachment variants.