Skip to content

OnActorsSelected multi-delegate should call broadcast #47

@lucianspec

Description

@lucianspec

if u direct call the implement method, it will be a one-to-one communication, use broadcast will multi cast. see https://dev.epicgames.com/documentation/en-us/unreal-engine/multicast-delegates-in-unreal-engine

if (const auto PC = GetOwningPlayerController())
{
if (const auto SelectorComponent = PC->FindComponentByClass())
{

   SelectorComponent -> OnActorsSelected.Broadcast(NewSelectedActors);
      //SelectorComponent->HandleSelectedActors(NewSelectedActors);
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions