Jump to content

Combining Properties of Item Stacks on Combining


Recommended Posts

I've added some components to certain prefabs which are stackable.
I'd like to make it so that when two stacks of these prefabs are combined, the properties of the extra component would be decided by a custom piece of code.
At the moment, one item remains and its stack size increases, while the other disappears, which means the properties are decided by whichever item happens to remain.
Usually I would want these properties to be reset to some minimum/maximum instead.

Is it possible to do this?

Thanks in advance. =)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...