Description

Variables declared with UPROPERTY( ) are shown in all components in Blueprint components tab.

Steps to Reproduce
  1. Create new empty c++ project
  2. Launch project and add new c++ class extending Character
  3. Add following code to new Character class:
       UPROPERTY( BlueprintReadWrite, EditDefaultsOnly, Category = "Testing|SecondTesting" )
       uint8 MyInt;	
    
  4. Save and compile.
  5. Right-click on class in UE4 and make Blueprint class from Character class
  6. In the new Blueprint class, switch between the components.

RESULT:

"MyInt" is visible from all components in the Character class.

EXPECTED:

Only the Character class can see "MyInt".

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

1
Login to Vote

Won't Fix
ComponentUE - Gameplay - Blueprint
Affects Versions4.14
CreatedOct 21, 2016
ResolvedAug 18, 2021
UpdatedAug 18, 2021