Hi all,
I was creating some components the other day to add specific behaviour to some objects. It crossed my mind that whilst the components could be added to any actor, I would never really want that to be the case... for example, if I created a health component, I might want that on my player, or an NPC, but perhaps not on a rock (arguably you could say the rock has some health until it splits when you keep hitting it, but lets assume its the smallest rock already that wont break any further).
The point being, if I was working in a small group and creating these components I would like to be able to say something like "can only be added to..." or "requires this component...".
Unity had the "Requires Component" ability, so I'm assuming Unreal has something similar - but how about "preventing" them from being added? e.g. within the editor, I try to add a component and its either greyed out, or just errors when I try to add it - in editor?
Anything like that built into Unreal?
Would appreciate any info - thanks
I was creating some components the other day to add specific behaviour to some objects. It crossed my mind that whilst the components could be added to any actor, I would never really want that to be the case... for example, if I created a health component, I might want that on my player, or an NPC, but perhaps not on a rock (arguably you could say the rock has some health until it splits when you keep hitting it, but lets assume its the smallest rock already that wont break any further).
The point being, if I was working in a small group and creating these components I would like to be able to say something like "can only be added to..." or "requires this component...".
Unity had the "Requires Component" ability, so I'm assuming Unreal has something similar - but how about "preventing" them from being added? e.g. within the editor, I try to add a component and its either greyed out, or just errors when I try to add it - in editor?
Anything like that built into Unreal?
Would appreciate any info - thanks

Comment