# BluePrint Property Change After Not Working In Game

**URL:** <https://forums.unrealengine.com/t/blueprint-property-change-after-not-working-in-game/481466>\
**Category:** Blueprint\
**Tags:** property, unreal-engine, Blueprint, question\
**Created:** [April 6, 2021, 8:00am UTC](https://forums.unrealengine.com/t/blueprint-property-change-after-not-working-in-game/481466 "2021-04-06T08:00:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qukejizx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@qukejizx](https://forums.unrealengine.com/u/qukejizx)\
**Post date:** [April 6, 2021, 8:00am UTC](https://forums.unrealengine.com/t/blueprint-property-change-after-not-working-in-game/481466/1 "2021-04-06T08:00:35Z")

</div>

//获取到世界大纲中的 Bp\_CineCameraProj 实例  
for (TActorIterator ActorItr(GetWorld()); ActorItr; ++ActorItr)  
{  
FString str1 = ActorItr-\>GetName();  
if (str1.Equals(TEXT(“BP\_CineCameraProj\_2”))) {  
this-\>m\_BPCameraActor = _ActorItr;  
this-\>m\_BP\_cinecamera\_proj=ActorItr-\>GetClass()-\>GetDefaultObject();  
//获取其中AlphaThreshold 关于抠像色值的一个参数，按理说设置到1.4投射的视频会变成全灰  
UProperty_ Prop = m\_BP\_cinecamera\_proj-\>GetClass()-\>FindPropertyByName(TEXT(“AlphaThreshold”));  
GEngine-\>AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("2The Properties Before Is : %s "), _Prop-\>GetName()));  
void_ StructAddress = Prop-\>ContainerPtrToValuePtr(m\_BP\_cinecamera\_proj);  
UFloatProperty\* ChildFloatProp = Cast(Prop);  
//输出修改前返回值  
GEngine-\>AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("3The Properties Before Is : %f "), ChildFloatProp-\>GetPropertyValue\_InContainer(StructAddress)));

```
		//将AlphaThreshold变量改为1.4
		float floatNumber = float(1.4f);
		//设置变量操作
		ChildFloatProp->SetPropertyValue_InContainer(StructAddress, floatNumber);
		GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green, FString::Printf(TEXT("The Properties After Is: %f "), ChildFloatProp->GetPropertyValue_InContainer(StructAddress)));
	}
}

```

}

I Use Plugin is Composite Plane ，Use to Operate GreenVideo，But Find the Property has Changed in DebugMessage，But The Camera projection to plane has No Change ，

Hope Any Advice And Help ~~
