AlexM
New member
Hi there!
I've been trying to use the ItemBinding script on my weapons for a custom script that helps process damages. Setting up bindings in the Inspector works fine, but I'm trying to set up automatic bindings to save time. I was wondering how I would go about this.
I've tried going through the list of all bindings in the weapon's ItemBinding script, comparing names to get the specific attributes I want, then setting the binding's BoundComponent to the custom script and the PropertyPath to the name of the specific property. It seems to work, because I can see that it's bound in the Inspector, but the bound value isn't actually being copied to the desired property. What exactly am I missing here?
I'll attach the script below. It's still unfinished, so not all of the bindings are being set up. I have one bound using my method and one bound in the Inspector to test it.
I would put this in the UCC integration forum, since it uses both UCC and UIS, but the problem I'm having is specifically with UIS's ItemBinding. Any help would be great! Thank you!
I've been trying to use the ItemBinding script on my weapons for a custom script that helps process damages. Setting up bindings in the Inspector works fine, but I'm trying to set up automatic bindings to save time. I was wondering how I would go about this.
I've tried going through the list of all bindings in the weapon's ItemBinding script, comparing names to get the specific attributes I want, then setting the binding's BoundComponent to the custom script and the PropertyPath to the name of the specific property. It seems to work, because I can see that it's bound in the Inspector, but the bound value isn't actually being copied to the desired property. What exactly am I missing here?
I'll attach the script below. It's still unfinished, so not all of the bindings are being set up. I have one bound using my method and one bound in the Inspector to test it.
I would put this in the UCC integration forum, since it uses both UCC and UIS, but the problem I'm having is specifically with UIS's ItemBinding. Any help would be great! Thank you!