...
Code Block | ||
---|---|---|
| ||
void APropertySyncActorClass::OnSpaceConnected(FCavrnusSpaceConnection SpaceConnection) { ... // Member is delegate FColorPropertyUpdated SpaceConnectedOnMaterialColorPropertyUpdated; OnMaterialColorPropertyUpdated.BindUFunction(this, GET_FUNCTION_NAME_CHECKED(APropertySyncActorClass, SetMyMaterialColor)); MaterialColorBinding = UCavrnusFunctionLibrary::BindColorPropertyValue(SpaceConnection, ContainerName, PropertyName, MaterialColorPropertyUpdatedOnMaterialColorPropertyUpdated); } void APropertySyncActorClass::SetMyMaterialColor(LinearColorFLinearColor Color) { MaterialInstance->SetVectorParameterValue("Color", Color); } |
...