No world was found for object (/Script/RPG.Default__LongGuRen) passed in to UEngine::GetWorldFromContextObject().
Hello,I used the GetPlayerCharacter() function in an Actor class to get my current character class
But When I Use Item, it Show Up
LogScript: Warning: Script Msg: No world was found for object (/Script/RPG.Default__LongGuRen) passed in to UEngine::GetWorldFromContextObject().
This Is My LongGuRen.CPP
My item class inheritance relationship is as follows: I have an inheritance in the base class for all items of the Actor ABaseItem, then have three class in ABaseItem, respectively, BaseWeapon, BaseStrengthen and BaseConsumables,My LongGuRen.Cpp inherits from BaseWeapon.
This Is My UseItem() Function :
Below is the logic of my use of the item:
InventoryProperty.ItemClass stores my item class, type is
The error is that I executed the ItemButtonEvnet() error, which is to use the item.
asked Feb 10 '19 at 05:09 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here