Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Struct setter has no nodes to set with.

What it shows up like:

alt text

The structure:

 struct FItem : public FTableRowBase
     UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Item")
         FName ID;
     UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Item")
         FName Name;
     UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Item")
         FString Description;
     UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Item")
         UTexture2D* Icon;
     UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Item")
         UStaticMesh* WorldMesh;
     UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Item")
         bool IsStackable;
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item")
         int Amount;
     UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "Item")
         int MaxAmount;

I'm trying to edit "Amount".

Product Version: UE 4.11
more ▼

asked Apr 09 '16 at 12:19 AM in Blueprint Scripting

avatar image

56 6 16 22

avatar image jayice Apr 09 '16 at 12:25 AM

The members have the property set on them of BlueprintReadOnly, change that to BlueprintReadWrite, and see if that helps.

Jay IceWare Inc

Author of IwSpline

avatar image Asusralis Apr 09 '16 at 12:38 AM

The variable "Amount" has BlueprintReadWrite. That's the only variable I want to change.

Unless you mean every variable needs to be BlueprintReadWrite?

avatar image jayice Apr 09 '16 at 12:40 AM

My apologies, didn't see that the one was set, and no you shouldn't have to set them all, they are controlled individually, or else we are all wasting a lot of typing time! lol

if you split the pin structure, for the setting, the "amount" is not there?

avatar image Asusralis Apr 09 '16 at 01:23 AM

It is, but isn't that just getting the variables? I thought when you set a variable the pin will be on the left side - not the right.

alt text

avatar image jayice Apr 09 '16 at 01:48 AM

Right click on the Struct Ref, on the right side, that should break apart the Reference for the input, and allow you access to the "amount" member.


IceWare Inc.


avatar image Asusralis Apr 09 '16 at 02:07 AM

I right clicked the struct ref pin on the right side of "set members in Item" and I got this:

alt text

How do I use that to set Amount?

avatar image jayice Apr 09 '16 at 05:21 AM

my apologies, I meant the left side with the "diamond" for the input pin

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Just found out about this myself less than an hour ago- fortunately it's an easy fix. Click on the Set Members in Struct node, and on the details panel, you'll be able to select via checkboxes which of the struct's variables you want to expose and set via the Set Members in Struct node.

more ▼

answered Apr 18 '16 at 10:43 PM

avatar image

46 2 2 53

avatar image Asusralis Apr 19 '16 at 11:30 PM

Yep, that works!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

If you Right click the Struct ref, you can then "Make Struct".

You might have to Break struct from where it came from, edit the Amount in between and then push every link into the make struct node.

Is this what you meant?

more ▼

answered Apr 09 '16 at 12:45 AM

avatar image

1.8k 66 27 90

avatar image Asusralis Apr 09 '16 at 01:26 AM

How do I do that when my structure is from an input parameter in a function? I can get a "make item" off of the struct ref, but that isn't changing the Item I want to change. I'm actually not quite sure what it's changing.

alt text

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question