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"

CanEditChange with an array

I've been working with CanEditChange and I understand how it works with basic properties, however I have an array of USTRUCT that I need to check, and I can't for the life of me figure out how to determine which element of the array I'm in.

The simplified structure of the object is 2 variables, an UENUM and an integer. These are the possible values for the UENUM:

  • String

  • Integer

  • Float

  • Boolean

If the UENUM is set to Integer, I want the integer variable to be editable, otherwise not.

If i didn't have these in an array, I could do it easily, but I don't know how to determine which array element I'm iterating over, thus I don't know which array element to check the enum type on.

Any help would be appreciated.

Product Version: UE Github Master branch
more ▼

asked Dec 27 '16 at 07:02 PM in C++ Programming

avatar image

1 1 3

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

1 answer: sort voted first

See if this can help.


more ▼

answered Nov 06 '18 at 09:26 AM

avatar image

128 8 19 16

(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