Announcement

Collapse
No announcement yet.

How to access values of a TAttribute binded to a FStruct

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to access values of a TAttribute binded to a FStruct

    I have a slate widget having a lot of values. To make it easier to update all the values, I thought of making a Structure making it easier to update the values but I can't see a way to use TAttribute structure values.

    .h File
    Code:
    	TAttribute<FText> PlanetName;
    	FText GetToolTipDataName() const;
    .ccp File
    Code:
    FToolTipData SToolTipWidget::GetToolTipData() const
    {
    	return GalaxyHUD->PlanetToolTipData;
    }
    
    
    ......
    {
    ...
    ...
    ...
    ToolTipData.Bind(this, &SToolTipWidget::GetToolTipData);
    
    // I cant use something like this ToolTipData.Name
    
    }
    If my TAttribute Data is bound to a structure, I can't access any values inside the structure using ".".
Working...
X