Hi all,
I’ve create a UDataAsset, see below…
UCLASS()
class MM2_API UMultipleLightTriggerData : public UDataAsset
{
GENERATED_BODY()
public:
// Switch Positions
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Switch")
int32 SwitchPosition;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Switch")
int32 SwitchPositionPrevious;
// Connected Lights 1
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Lights")
TArray<AWallLamp*> ConnectLights1;
// Connected Lights 2
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Lights")
TArray<AWallLamp*> ConnectLights2;
};
In the editor I’ve created a DataAsset object in the Project, referenced it in my AActor class so that it shows in the Editor and assigned it’s reference (see image to see this as it’s easier to see than explain). You will see the drop downs for the two sets of Arrays. When i click the little down arrow in the arrays it lists all the lights in my scene correctly, but i can’t select them (always defaults to none).
Can you not reference world actors in DataAssets?
Best Regards,
Matt.
