When invoking a custom struct, the first listed variable will not appear in the Intelisense window.
1. Open UE4 Editor (any project)
2. Add code to project based on Actor
3. In the header file, add the following code:
USTRUCT() struct StructTest { GENERATED_USTRUCT_BODY() public: UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Test") float Option1; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Test") float Option2; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Test") float Option3; }; UCLASS() class CAPSULECRASHTEST_API AMyActor2 : public AActor { GENERATED_BODY() void things(); StructTest testStruct; };
4. In source file, add the following code:
void AMyActor2::things() { }
5. In things(), type "testStruct" and wait for Intelisense to respond
6. Once Intelisense picks up testStruct add a dot operator (.)
Result:
Option2 and Option3 will appear but Option1 will not.
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.6.1 |
Target Fix | 4.14 |
Created | Feb 18, 2015 |
---|---|
Resolved | Nov 8, 2016 |
Updated | Feb 5, 2017 |