Where to set property values on newly added components
I made a new component, and set the default value of an integer uproperty to -1. What i want to do, is, when, in BP editor components tab, i add this component to the BP, the integer uproperty is set to Max of the same property across all the components of that type in the actor. I ONLY want this to happen in the editor, when the new component is added. I've tried OnComponentCreated, OnRegister, PostLoad, etc, but whereever i set the uproperty value, in the details panel it always shows up as -1. It's not a logic error, because even if it doesnt find an owning actor or any other components, it should still set it to 0.
tl;dr which method do i use to initialize default properties from a component ONLY in the editor AFTER it's been added to the actor ?
asked Jan 07 '15 at 10:37 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here