void UNiagaraNodeWriteDataSet::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) { if (PropertyChangedEvent.Property != nullptr) { ReallocatePins(); } Super::PostEditChangeProperty(PropertyChangedEvent); }
void UNiagaraNodeFunctionCall::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) { if (PropertyChangedEvent.Property != nullptr) { ReallocatePins(); } Super::PostEditChangeProperty(PropertyChangedEvent); GetGraph()->NotifyGraphChanged(); }
void UNiagaraNodeInput::AutowireNewNode(UEdGraphPin* FromPin) { if (FromPin != nullptr) { const UEdGraphSchema_Niagara* Schema = CastChecked<UEdGraphSchema_Niagara>(GetSchema()); check(Schema); if (Input.Name == NAME_None) { Input.Name = FName(*FromPin->PinName); Input.Type = Schema->GetPinType(FromPin); ReallocatePins(); } check(Pins.Num() == 1 && Pins[0] != NULL); if (GetSchema()->TryCreateConnection(FromPin, Pins[0])) { FromPin->GetOwningNode()->NodeConnectionListChanged(); } } }
void UNiagaraNodeOutput::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) { ReallocatePins(); }
void UNiagaraNodeInput::AllocateDefaultPins() { ReallocatePins(); }