转至内容
商品 Item Manager 的媒体 1

描述

This plugin is now free.

Check my other plugins on Fab

Also available on my github

Documentation

Demo

The ItemManager plugin oofers a solution for managing items within your game environement. This versatile toolset simplifies the implementation of various item-related functionalities, including drop, collect, and switch, while providing developers with a suite of customization.

The ItemManager component allows your actor to interact with the all ItemManager system. The component privides you customization such as :

  • Loop switching

  • Add an empty item by default

  • Allows duplicates

  • Item limit.

The component brings some functions to use the manager, add item, switch next/previous/index item, drop item, and use item.

The ItemParent class allows you to create custom item that can be used by the ItemManager. The class provides you parameters :

  • Skeletal mesh component

  • Friendly name

  • Attach socket

  • Detach socket

  • Time before item despawn

  • Time before item spawn

  • Is item dropable

  • Can use item

  • Can collect item

  • Can switch

  • Auto equipped when collected

  • Despawn item when switched

The class also brings you a OnItemUsed and CannotUseItem event (both in blueprint and C++). these functions need to be overrided if they are used in C++.

The ItemCollectable class needs to be placed in the world, its used to have a collectable item (only actor with the ItemManager component can collect those).

This class comes with a lot of customization :

  • ItemParent subclass (item that is intended to be collected)

  • Custom Trigger box size

  • Item display

  • Grounded : Will snap your item to the nearest ground and attach the item to it.

  • Animated : Will activate an animation

  • Physics : Will activate physics on the item

Grounded properties

  • Ground rotation type ( keep ground rotation ; keep mesh rotation)

  • Adjusted rotation (allows you to add rotation to the mesh only)

  • Invert mesh rotation (allows you to add 180° to the mesh rotation)

Animation properties

  • Height

  • Height speed

  • Rotation speed

  • Enable collisions ( must have a physics asset in your skeletal mesh)

  • Enable transparency ( allows you to see items through walls)

  • Enable outline ( the outline will apear when actor (only with ItemManager Component) overlapped the trigger box)

  • Outline material (by default, the plugin has a outline material, but you can change it)

包含格式