Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
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);
}

...