FSocialLink
Overview
FSocialLink is a data structure used to store information about a social link. It can be configured in the Unreal Engine editor and accessed via C++ code using the ULimenSocialLinkSettings class.
Properties
Type | Name | Access | Description |
|---|---|---|---|
FName | Id | EditAnywhere, BlueprintReadWrite | Unique identifier for the social link. |
TSoftObjectPtr | Image | EditAnywhere, BlueprintReadWrite | Icon or image associated with the social link. |
FText | Text | EditAnywhere, BlueprintReadWrite | Display text for the social link. |
FString | Hyperlink | EditAnywhere, BlueprintReadWrite | URL or hyperlink that the social link points to. |
Functions
Return Type | Signature | Description |
|---|---|---|
bool | GetSocialLink(const FName& Id, FSocialLink& OutLink) | Retrieves a social link by its ID and stores it in |
const TArray & | GetSocialLinks() | Returns an array of all configured social links. |
Usage & Implementation Notes
This structure is used to store social link data that can be accessed at runtime.
The
GetSocialLinkfunction provides a way to retrieve a specific social link by its ID, which can be useful for displaying the link in-game or elsewhere in the application.The
GetSocialLinksfunction returns all configured social links, allowing for easy iteration and display.