Week 6 Continued:Player Character & Weapon Integration: Asset Selection, Custom Animation Controller, and Weapon Swapping

Asset Selection and Animation Controller Setup

This week, I focused on integrating new character and weapon assets provided by the designers. I received four different character asset links and selected the FREE Low Poly Human – RPG Character from the Unity Asset Store for its compatibility, quality, and included rig. Although this package included an animation controller, it did not fit the needs of our gameplay mechanics, so I created a custom animation controller.

The new controller features labeled states for movement, one-handed and two-handed melee attacks, blocking, gathering, taking damage, and death. I adjusted the movement code to update the animator parameters in real time, ensuring smooth transitions between idle, walking, and attack animations:

Weapon Asset Integration and Swapping

For weapons, I was provided with eight assets covering both modern and medieval styles. I selected the Low Poly AR Weapon Pack 1 for modern firearms and the Low Poly RPG Fantasy Weapons Lite for melee options. To handle weapon switching, I implemented a function that activates the correct weapon model based on the equipped type:

This approach ensures that only the selected weapon is visible and interactable, supporting both melee and ranged gameplay.

Reflection

Despite the wide variety of asset styles (medieval, modern, sci-fi), I prioritized assets with complete rigs and animations to maintain gameplay quality. Creating a custom animation controller allowed for precise control over gameplay states and smoother integration of new assets.

References

  • ShareX. (2025). Screen Capture and File Sharing Tool.

Leave a comment

Design a site like this with WordPress.com
Get started