October 2016
Intermediate to advanced
452 pages
9h 47m
English
Sometimes, you may need to create a UInterface that specializes on a more general UInterface.
This recipe shows you how to use inheritance with UInterfaces to specialize a Killable interface with an Undead interface that cannot be killed by normal means.
UINTERFACE/IInterface called UKillable.UINTERFACE(meta=(CannotImplementInterfaceInBlueprint)) to the UInterface declaration.UFUNCTION(BlueprintCallable, Category=Killable) virtual bool IsDead(); UFUNCTION(BlueprintCallable, Category = Killable) virtual void Die();
boolIKillable::IsDead() { return false; ...Read now
Unlock full access