Last updated: Sep 7, 2022
The Attachment Spawned script contains a struct with the same name used to define what an attachment is in the asset when it is spawned (which is actually somewhat different than just a theoretical attachment that could be spawned). In our case, it really just means it stores the serialized fields that are shown below.
You can find the Attachment Spawned script ****at this path: Assets\Infima Games\Low Poly Animated - Modern Guns\Demo\Code\Attachments\AttachmentSpawned.cs
Type. Defines the type of attachment this is. The name here is actually incredibly important, as it is later referenced in quite a few places.
Socket. Socket on an item that we want to spawn this attachment at.
GameObject. Reference to the Game Object in the scene that actually represents this Attachment.
Index. Index of this Attachment in the Variants list used to pick what we want to spawn.