# UTextRenderComponent not changing visiblity for one player.

**URL:** <https://forums.unrealengine.com/t/utextrendercomponent-not-changing-visiblity-for-one-player/303965>\
**Category:** UI\
**Tags:** text, unreal-engine, UE4, CPP, question\
**Created:** [January 14, 2015, 6:54pm UTC](https://forums.unrealengine.com/t/utextrendercomponent-not-changing-visiblity-for-one-player/303965 "2015-01-14T18:54:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Demiu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Demiu](https://forums.unrealengine.com/u/Demiu)\
**Post date:** [January 14, 2015, 6:54pm UTC](https://forums.unrealengine.com/t/utextrendercomponent-not-changing-visiblity-for-one-player/303965/1 "2015-01-14T18:54:24Z")

</div>

I have Character set up to show tooltip when he looks at pickup:

```
void AMyCharacter::Tick(float DeltaSeconds){
	Super::Tick(DeltaSeconds);

	FHitResult Hit;
	FVector StartLocation = GetActorLocation();
	FVector EndLocation = StartLocation + GetViewRotation().Vector() * 200;

	if (GetWorld()->LineTraceSingle(Hit, StartLocation, EndLocation, ECC_Camera, FCollisionQueryParams(GetClass()->GetFName(), false, this))){
		APickup* LookingAt = Cast<APickup>(Hit.Actor.Get());
		if (LookingAt){
			GEngine->AddOnScreenDebugMessage(-1, 10.0, FColor::Yellow, TEXT("i see"));
			LookingAt->ShowTooltip(this);
		}
	}
}

```

In Weapon\_Pickup (child of pickup):

```
void APickup_Weapon::ShowTooltip(AMyCharacter* ToWho){
	GEngine->AddOnScreenDebugMessage(-1, 10.0, FColor::Yellow, TEXT("turning on text"));
	Tooltip->SetVisibility(true);
}

```

Problem is - the text does become visible for everyone except the player who i looked at it with, i tested it with multiple different players looking at pickup.

Additional question that i’d like here, because it doesn’t deserve it’s own thread - how to check if character is controled by local player?
