Advertisement

craft system problem

Started by June 17, 2017 12:21 PM
1 comment, last by Pedro Alves 7 years, 5 months ago

i can´t put my craft working
the material don´t update in craft widget

MasterItem.h


USTRUCT(BlueprintType)
struct Finventoryslot : public FTableRowBase
{
    GENERATED_BODY()

public:

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        TSubclassOf<class AMasterItem>ItemClass;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        int32 Amount;

};

"LegendOfArthurCharacter.h


USTRUCT(BlueprintType)
struct FInventoryItem : public FTableRowBase
{
    GENERATED_BODY()

public:

    /*FInventoryItem() {
    Name = FText::FromString("Item");
    Action = FText::FromString("Use");
    Description = FText::FromString("Please Enter a description for this item");
    Value = 10;
    }
    */
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FName ItemID;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Name;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Action;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        int32 Value;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        UTexture2D * thumbnail;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Description;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        Category Category;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        Rank Ranks;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        bool canbeStack;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        TArray<Finventoryslot>Recepie;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        bool bCanBeUsed;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        EnumSlots EnumSlots;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FString internalName;
};

i put the blueprints and widgets in googledrive

i using this tuturial

#t=9.483922
https://drive.google.com/open?id=0B11O6ZMrJmMORkw1bWRQZmd2RFk
what i doing wrong

Hello

Watch the tutorial again and see what you did wrong. You can't expect people to solve your problems like these.

Advertisement

i find the soluction

i make a newbie mistake

i forget the connect the the foreachloop with breake in array element i forget the connect

the array element to current amount and requeried amount

Hello

This topic is closed to new replies.

Advertisement