Hi
I use UE5 to render product. I add Rectangle Light into scene. I need Rectangle Light tracking a point.
How to set Rectangle Light tracking a point?
Thank you
Best regards
Travis
Hi
I use UE5 to render product. I add Rectangle Light into scene. I need Rectangle Light tracking a point.
How to set Rectangle Light tracking a point?
Thank you
Best regards
Travis
Thank @Extrone for your try. I have no experience in Blueprint. Could you please give more detail how to use it. If possible, please give example. Thank a lot
Select the RectLight
Open the Level Blueprint using :
Select and delete everything on the graph. Right click on the graph and select “Create a reference to RectLight”
Copy and paste the following code on the graph :
Begin Object Class=/Script/BlueprintGraph.K2Node_Event Name="K2Node_Event_1" ExportPath=/Script/BlueprintGraph.K2Node_Event'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.EventGraph.K2Node_Event_1"'
EventReference=(MemberParent=/Script/CoreUObject.Class'"/Script/Engine.Actor"',MemberName="ReceiveTick")
bOverrideFunction=True
NodePosY=1040
NodeGuid=9AC7E82D486CFEA4EEB4B897B65E5EB5
CustomProperties Pin (PinId=4C36B29E423DDFB8FD6D8BBD6CF99985,PinName="OutputDelegate",Direction="EGPD_Output",PinType.PinCategory="delegate",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(MemberParent=/Script/CoreUObject.Class'"/Script/Engine.Actor"',MemberName="ReceiveTick"),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=F0EFB26545CA3B077431C89C99FF9A28,PinName="then",Direction="EGPD_Output",PinType.PinCategory="exec",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_2 275E04F44D94C20029A2AE85C1BE7BE0,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=18B2966A4EE80F446E150DB54E8130C1,PinName="DeltaSeconds",PinToolTip="Delta Seconds\nFloat (single-precision)",Direction="EGPD_Output",PinType.PinCategory="real",PinType.PinSubCategory="float",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0.0",AutogeneratedDefaultValue="0.0",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_Literal Name="K2Node_Literal_1" ExportPath=/Script/BlueprintGraph.K2Node_Literal'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.EventGraph.K2Node_Literal_1"'
ObjectRef=/Script/Engine.RectLight'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.RectLight_1"'
NodePosX=399
NodePosY=1111
NodeGuid=76FB9EF24D768EABF7E22991D63D7A72
CustomProperties Pin (PinId=E55087C94726F1CAB4E9F6916E106AE8,PinName="RectLight1",PinFriendlyName="RectLight1",Direction="EGPD_Output",PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.Class'"/Script/Engine.RectLight"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_2 07A5B76B40DF1B9E725EC6AC22FE64C5,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_2" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.EventGraph.K2Node_CallFunction_2"'
FunctionReference=(MemberName="K2_SetActorRotation",bSelfContext=True)
NodePosX=624
NodePosY=1024
NodeGuid=D600A23B49412C80F7F16C88C5F4B538
CustomProperties Pin (PinId=275E04F44D94C20029A2AE85C1BE7BE0,PinName="execute",PinToolTip="\nExec",PinType.PinCategory="exec",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_Event_1 F0EFB26545CA3B077431C89C99FF9A28,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=F9A3C2A34589A75EF93C4A8BF736D5FC,PinName="then",PinToolTip="\nExec",Direction="EGPD_Output",PinType.PinCategory="exec",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=07A5B76B40DF1B9E725EC6AC22FE64C5,PinName="self",PinFriendlyName=NSLOCTEXT("K2Node", "Target", "Target"),PinToolTip="Target\nActor Object Reference",PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.Class'"/Script/Engine.Actor"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_Literal_1 E55087C94726F1CAB4E9F6916E106AE8,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=9B757EDC4D25E2FA09C5ED8E56E0CFA7,PinName="NewRotation",PinToolTip="New Rotation\nRotator\n\nThe new rotation for the Actor.",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Rotator"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_7 1A8E48734B43731C2DD7BC9835866C29,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=53C826F5467642D1F317FD983876933B,PinName="bTeleportPhysics",PinToolTip="Teleport Physics\nBoolean\n\nWhether we teleport the physics state (if physics collision is enabled for this object). If true, physics velocity for this object is unchanged (so ragdoll parts are not affected by change in location). If false, physics velocity is updated based on the change in position (affecting ragdoll parts).",PinType.PinCategory="bool",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="false",AutogeneratedDefaultValue="false",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=AC336C164980FE63AEEBB2B731748FE6,PinName="ReturnValue",PinToolTip="Return Value\nBoolean\n\nWhether the rotation was successfully set.",Direction="EGPD_Output",PinType.PinCategory="bool",PinType.PinSubCategory="",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="false",AutogeneratedDefaultValue="false",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_Literal Name="K2Node_Literal_0" ExportPath=/Script/BlueprintGraph.K2Node_Literal'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.EventGraph.K2Node_Literal_0"'
ObjectRef=/Script/Engine.RectLight'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.RectLight_1"'
NodePosX=-512
NodePosY=1272
NodeGuid=0CB3BE7B464C9F097AEE5C968864C417
CustomProperties Pin (PinId=E55087C94726F1CAB4E9F6916E106AE8,PinName="RectLight1",PinFriendlyName="RectLight1",Direction="EGPD_Output",PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.Class'"/Script/Engine.RectLight"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_5 A7C3AE824E3CB86BABEDA09B10CDFBED,K2Node_CallFunction_9 2F824F3D44E240FFB8412B8E239761F4,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_5" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.EventGraph.K2Node_CallFunction_5"'
bIsPureFunc=True
bIsConstFunc=True
FunctionReference=(MemberName="K2_GetActorRotation",bSelfContext=True)
NodePosY=1230
NodeGuid=977992204332CB17D051AF9707088A9B
CustomProperties Pin (PinId=A7C3AE824E3CB86BABEDA09B10CDFBED,PinName="self",PinFriendlyName=NSLOCTEXT("K2Node", "Target", "Target"),PinToolTip="Target\nActor Object Reference",PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.Class'"/Script/Engine.Actor"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_Literal_0 E55087C94726F1CAB4E9F6916E106AE8,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=6320977B41BEDE791A2A3C9EA8C0EEAA,PinName="ReturnValue",PinToolTip="Return Value\nRotator\n\nReturns rotation of the RootComponent of this Actor.",Direction="EGPD_Output",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Rotator"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_7 CC7B2F004BD335F7D02941AE35C52AEB,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_7" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.EventGraph.K2Node_CallFunction_7"'
bIsPureFunc=True
FunctionReference=(MemberParent=/Script/CoreUObject.Class'"/Script/Engine.KismetMathLibrary"',MemberName="RInterpTo")
NodePosX=336
NodePosY=1248
NodeGuid=965177074F5B349E82A0CD8240AAEA92
CustomProperties Pin (PinId=3816FFAC4D5ACFE7D1477384926F6F3F,PinName="self",PinFriendlyName=NSLOCTEXT("K2Node", "Target", "Target"),PinToolTip="Target\nKismet Math Library Object Reference",PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.Class'"/Script/Engine.KismetMathLibrary"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultObject="/Script/Engine.Default__KismetMathLibrary",PersistentGuid=00000000000000000000000000000000,bHidden=True,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=CC7B2F004BD335F7D02941AE35C52AEB,PinName="Current",PinToolTip="Current\nRotator\n\nActual rotation",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Rotator"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_5 6320977B41BEDE791A2A3C9EA8C0EEAA,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=B6C4370143642C473ACC479E454414B8,PinName="Target",PinToolTip="Target\nRotator\n\nTarget rotation",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Rotator"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_8 C12318354581AD0758BBBB80170EA9B0,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=F4B59F224BFD32266C553BBCC60741B2,PinName="DeltaTime",PinToolTip="Delta Time\nFloat (single-precision)\n\nTime since last tick",PinType.PinCategory="real",PinType.PinSubCategory="float",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0.0",AutogeneratedDefaultValue="0.0",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=EB92B0D64C9218F7838E11B1D9F4CE01,PinName="InterpSpeed",PinToolTip="Interp Speed\nFloat (single-precision)\n\nInterpolation speed, if the speed given is 0, then jump to the target.",PinType.PinCategory="real",PinType.PinSubCategory="float",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0.0",AutogeneratedDefaultValue="0.0",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=1A8E48734B43731C2DD7BC9835866C29,PinName="ReturnValue",PinToolTip="Return Value\nRotator\n\nNew interpolated position",Direction="EGPD_Output",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Rotator"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_2 9B757EDC4D25E2FA09C5ED8E56E0CFA7,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_8" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.EventGraph.K2Node_CallFunction_8"'
bIsPureFunc=True
FunctionReference=(MemberParent=/Script/CoreUObject.Class'"/Script/Engine.KismetMathLibrary"',MemberName="FindLookAtRotation")
NodePosY=1328
NodeGuid=4D828A9741594FB9CB07F28315280931
CustomProperties Pin (PinId=232159E64DDDAED0EF9B6AA0C5782103,PinName="self",PinFriendlyName=NSLOCTEXT("K2Node", "Target", "Target"),PinToolTip="Target\nKismet Math Library Object Reference",PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.Class'"/Script/Engine.KismetMathLibrary"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultObject="/Script/Engine.Default__KismetMathLibrary",PersistentGuid=00000000000000000000000000000000,bHidden=True,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=30A5CD054696A94E190A71AB84B874A2,PinName="Start",PinToolTip="Start\nVector (by ref)",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Vector"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=True,PinType.bIsConst=True,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_9 DCD85CEB4C37703BD74779ABD298089A,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=True,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=2CFA007F49D266CBAC5212965904176B,PinName="Target",PinToolTip="Target\nVector (by ref)",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Vector"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=True,PinType.bIsConst=True,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_10 C80694164CB306F4086D4EB08CD13700,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=True,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=C12318354581AD0758BBBB80170EA9B0,PinName="ReturnValue",PinToolTip="Return Value\nRotator\n\nFind a rotation for an object at Start location to point at Target location.",Direction="EGPD_Output",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Rotator"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_7 B6C4370143642C473ACC479E454414B8,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_9" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.EventGraph.K2Node_CallFunction_9"'
bIsPureFunc=True
bIsConstFunc=True
FunctionReference=(MemberName="K2_GetActorLocation",bSelfContext=True)
NodePosX=-256
NodePosY=1310
NodeGuid=72377BA347BBBA2A7E7EB3999AF16818
CustomProperties Pin (PinId=2F824F3D44E240FFB8412B8E239761F4,PinName="self",PinFriendlyName=NSLOCTEXT("K2Node", "Target", "Target"),PinToolTip="Target\nActor Object Reference",PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.Class'"/Script/Engine.Actor"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_Literal_0 E55087C94726F1CAB4E9F6916E106AE8,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=DCD85CEB4C37703BD74779ABD298089A,PinName="ReturnValue",PinToolTip="Return Value\nVector\n\nReturns the location of the RootComponent of this Actor",Direction="EGPD_Output",PinType.PinCategory="struct",PinType.PinSubCategory="",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct'"/Script/CoreUObject.Vector"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue="0, 0, 0",AutogeneratedDefaultValue="0, 0, 0",LinkedTo=(K2Node_CallFunction_8 30A5CD054696A94E190A71AB84B874A2,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object
This should add most of the nodes from the previous screenshot to the graph. (You might have to replace the RectLight nodes with the ones we created in step 3 if your RectLight has a different name.)
5. Select the actor you want the rect light to track in the level and in the graph, again create a reference like we did with the rect light.
6. Then drag from that reference pin and search for Get Actor Location:
7. Connect the return value pin of Get Actor Location to Target pin of the Find Look At Rotation node.
8. Connect Delta Seconds from Event Tick to Delta Seconds on RInterp To node :
9. And for the Interp Speed in RInterp To node, you can use like 10 or something :
I made a function if you want to skip most of the work above.
Copy and paste the code below.
BPGraph(GraphName="SetRotationToTrackTarget",GraphType=GT_Function,OriginalBlueprint=/Script/Engine.LevelScriptBlueprint'"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu"',NodesString="Begin Object Class=/Script/BlueprintGraph.K2Node_FunctionEntry Name=\"K2Node_FunctionEntry_0\" ExportPath=/Script/BlueprintGraph.K2Node_FunctionEntry\'\"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.SetRotationToTrackTarget.K2Node_FunctionEntry_0\"\'\r\n ExtraFlags=201457664\r\n FunctionReference=(MemberName=\"SetRotationToTrackTarget\")\r\n bIsEditable=True\r\n NodePosX=-720\r\n NodePosY=1104\r\n NodeGuid=EFB0ED5946238BED3B21AD8FEF3DDBB8\r\n CustomProperties Pin (PinId=FDA170744C2B009DD34EEC8F60BE9A3A,PinName=\"then\",Direction=\"EGPD_Output\",PinType.PinCategory=\"exec\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_2 275E04F44D94C20029A2AE85C1BE7BE0,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=A8475B9F4FEFDEBE66E3BCA006C9A350,PinName=\"DeltaTime\",Direction=\"EGPD_Output\",PinType.PinCategory=\"real\",PinType.PinSubCategory=\"float\",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_7 F4B59F224BFD32266C553BBCC60741B2,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=9F65CD67438983A7E6ED359F97C95038,PinName=\"RectLight\",Direction=\"EGPD_Output\",PinType.PinCategory=\"object\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.Actor\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_2 07A5B76B40DF1B9E725EC6AC22FE64C5,K2Node_CallFunction_5 A7C3AE824E3CB86BABEDA09B10CDFBED,K2Node_CallFunction_21 2F824F3D44E240FFB8412B8E239761F4,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=8A3FAD1347D64F07357919A714E1D8F6,PinName=\"Target\",Direction=\"EGPD_Output\",PinType.PinCategory=\"object\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.Actor\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_CallFunction_9 2F824F3D44E240FFB8412B8E239761F4,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties UserDefinedPin (PinName=\"DeltaTime\",PinType=(PinCategory=\"real\",PinSubCategory=\"float\"),DesiredPinDirection=EGPD_Output)\r\n CustomProperties UserDefinedPin (PinName=\"RectLight\",PinType=(PinCategory=\"object\",PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.Actor\"\'),DesiredPinDirection=EGPD_Output)\r\n CustomProperties UserDefinedPin (PinName=\"Target\",PinType=(PinCategory=\"object\",PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.Actor\"\'),DesiredPinDirection=EGPD_Output)\r\nEnd Object\r\nBegin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name=\"K2Node_CallFunction_5\" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction\'\"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.SetRotationToTrackTarget.K2Node_CallFunction_5\"\'\r\n bIsPureFunc=True\r\n bIsConstFunc=True\r\n FunctionReference=(MemberName=\"K2_GetActorRotation\",bSelfContext=True)\r\n NodePosY=1344\r\n NodeGuid=B427070B462041C71D20CDBF1C9AB047\r\n CustomProperties Pin (PinId=A7C3AE824E3CB86BABEDA09B10CDFBED,PinName=\"self\",PinFriendlyName=NSLOCTEXT(\"K2Node\", \"Target\", \"Target\"),PinToolTip=\"Target\\nActor Object Reference\",PinType.PinCategory=\"object\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.Actor\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_FunctionEntry_0 9F65CD67438983A7E6ED359F97C95038,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=6320977B41BEDE791A2A3C9EA8C0EEAA,PinName=\"ReturnValue\",PinToolTip=\"Return Value\\nRotator\\n\\nReturns rotation of the RootComponent of this Actor.\",Direction=\"EGPD_Output\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Rotator\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_7 CC7B2F004BD335F7D02941AE35C52AEB,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\nEnd Object\r\nBegin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name=\"K2Node_CallFunction_7\" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction\'\"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.SetRotationToTrackTarget.K2Node_CallFunction_7\"\'\r\n bIsPureFunc=True\r\n FunctionReference=(MemberParent=/Script/CoreUObject.Class\'\"/Script/Engine.KismetMathLibrary\"\',MemberName=\"RInterpTo\")\r\n NodePosX=336\r\n NodePosY=1360\r\n NodeGuid=ADF64CB747831AACBC697994BD48F2C2\r\n CustomProperties Pin (PinId=3816FFAC4D5ACFE7D1477384926F6F3F,PinName=\"self\",PinFriendlyName=NSLOCTEXT(\"K2Node\", \"Target\", \"Target\"),PinToolTip=\"Target\\nKismet Math Library Object Reference\",PinType.PinCategory=\"object\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.KismetMathLibrary\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultObject=\"/Script/Engine.Default__KismetMathLibrary\",PersistentGuid=00000000000000000000000000000000,bHidden=True,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=CC7B2F004BD335F7D02941AE35C52AEB,PinName=\"Current\",PinToolTip=\"Current\\nRotator\\n\\nActual rotation\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Rotator\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_5 6320977B41BEDE791A2A3C9EA8C0EEAA,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=B6C4370143642C473ACC479E454414B8,PinName=\"Target\",PinToolTip=\"Target\\nRotator\\n\\nTarget rotation\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Rotator\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_8 C12318354581AD0758BBBB80170EA9B0,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=F4B59F224BFD32266C553BBCC60741B2,PinName=\"DeltaTime\",PinToolTip=\"Delta Time\\nFloat (single-precision)\\n\\nTime since last tick\",PinType.PinCategory=\"real\",PinType.PinSubCategory=\"float\",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0.0\",AutogeneratedDefaultValue=\"0.0\",LinkedTo=(K2Node_FunctionEntry_0 A8475B9F4FEFDEBE66E3BCA006C9A350,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=EB92B0D64C9218F7838E11B1D9F4CE01,PinName=\"InterpSpeed\",PinToolTip=\"Interp Speed\\nFloat (single-precision)\\n\\nInterpolation speed, if the speed given is 0, then jump to the target.\",PinType.PinCategory=\"real\",PinType.PinSubCategory=\"float\",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"10.000000\",AutogeneratedDefaultValue=\"0.0\",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=1A8E48734B43731C2DD7BC9835866C29,PinName=\"ReturnValue\",PinToolTip=\"Return Value\\nRotator\\n\\nNew interpolated position\",Direction=\"EGPD_Output\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Rotator\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_2 9B757EDC4D25E2FA09C5ED8E56E0CFA7,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\nEnd Object\r\nBegin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name=\"K2Node_CallFunction_8\" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction\'\"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.SetRotationToTrackTarget.K2Node_CallFunction_8\"\'\r\n bIsPureFunc=True\r\n FunctionReference=(MemberParent=/Script/CoreUObject.Class\'\"/Script/Engine.KismetMathLibrary\"\',MemberName=\"FindLookAtRotation\")\r\n NodePosY=1440\r\n NodeGuid=FAF720B04E3D6DD3587641825F1D9D29\r\n CustomProperties Pin (PinId=232159E64DDDAED0EF9B6AA0C5782103,PinName=\"self\",PinFriendlyName=NSLOCTEXT(\"K2Node\", \"Target\", \"Target\"),PinToolTip=\"Target\\nKismet Math Library Object Reference\",PinType.PinCategory=\"object\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.KismetMathLibrary\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultObject=\"/Script/Engine.Default__KismetMathLibrary\",PersistentGuid=00000000000000000000000000000000,bHidden=True,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=30A5CD054696A94E190A71AB84B874A2,PinName=\"Start\",PinToolTip=\"Start\\nVector (by ref)\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Vector\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=True,PinType.bIsConst=True,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_21 DCD85CEB4C37703BD74779ABD298089A,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=True,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=2CFA007F49D266CBAC5212965904176B,PinName=\"Target\",PinToolTip=\"Target\\nVector (by ref)\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Vector\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=True,PinType.bIsConst=True,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_9 DCD85CEB4C37703BD74779ABD298089A,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=True,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=C12318354581AD0758BBBB80170EA9B0,PinName=\"ReturnValue\",PinToolTip=\"Return Value\\nRotator\\n\\nFind a rotation for an object at Start location to point at Target location.\",Direction=\"EGPD_Output\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Rotator\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_7 B6C4370143642C473ACC479E454414B8,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\nEnd Object\r\nBegin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name=\"K2Node_CallFunction_21\" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction\'\"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.SetRotationToTrackTarget.K2Node_CallFunction_21\"\'\r\n bIsPureFunc=True\r\n bIsConstFunc=True\r\n FunctionReference=(MemberName=\"K2_GetActorLocation\",bSelfContext=True)\r\n NodePosX=-256\r\n NodePosY=1424\r\n NodeGuid=B98E81F840CBDD1119DE07B3093F9588\r\n CustomProperties Pin (PinId=2F824F3D44E240FFB8412B8E239761F4,PinName=\"self\",PinFriendlyName=NSLOCTEXT(\"K2Node\", \"Target\", \"Target\"),PinToolTip=\"Target\\nActor Object Reference\",PinType.PinCategory=\"object\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.Actor\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_FunctionEntry_0 9F65CD67438983A7E6ED359F97C95038,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=DCD85CEB4C37703BD74779ABD298089A,PinName=\"ReturnValue\",PinToolTip=\"Return Value\\nVector\\n\\nReturns the location of the RootComponent of this Actor\",Direction=\"EGPD_Output\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Vector\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_8 30A5CD054696A94E190A71AB84B874A2,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\nEnd Object\r\nBegin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name=\"K2Node_CallFunction_9\" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction\'\"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.SetRotationToTrackTarget.K2Node_CallFunction_9\"\'\r\n bIsPureFunc=True\r\n bIsConstFunc=True\r\n FunctionReference=(MemberName=\"K2_GetActorLocation\",bSelfContext=True)\r\n NodePosX=-272\r\n NodePosY=1568\r\n NodeGuid=90C7917D4403D07E9728FC8EC4B231C5\r\n CustomProperties Pin (PinId=2F824F3D44E240FFB8412B8E239761F4,PinName=\"self\",PinFriendlyName=NSLOCTEXT(\"K2Node\", \"Target\", \"Target\"),PinToolTip=\"Target\\nActor Object Reference\",PinType.PinCategory=\"object\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.Actor\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_FunctionEntry_0 8A3FAD1347D64F07357919A714E1D8F6,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=DCD85CEB4C37703BD74779ABD298089A,PinName=\"ReturnValue\",PinToolTip=\"Return Value\\nVector\\n\\nReturns the location of the RootComponent of this Actor\",Direction=\"EGPD_Output\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Vector\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_8 2CFA007F49D266CBAC5212965904176B,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\nEnd Object\r\nBegin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name=\"K2Node_CallFunction_2\" ExportPath=/Script/BlueprintGraph.K2Node_CallFunction\'\"/Game/Maps/L_MainMenu.L_MainMenu:PersistentLevel.L_MainMenu.SetRotationToTrackTarget.K2Node_CallFunction_2\"\'\r\n FunctionReference=(MemberName=\"K2_SetActorRotation\",bSelfContext=True)\r\n NodePosX=624\r\n NodePosY=1104\r\n NodeGuid=6D853D6B4D614CAB03AB699C3BFFA0B8\r\n CustomProperties Pin (PinId=275E04F44D94C20029A2AE85C1BE7BE0,PinName=\"execute\",PinToolTip=\"\\nExec\",PinType.PinCategory=\"exec\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_FunctionEntry_0 FDA170744C2B009DD34EEC8F60BE9A3A,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=F9A3C2A34589A75EF93C4A8BF736D5FC,PinName=\"then\",PinToolTip=\"\\nExec\",Direction=\"EGPD_Output\",PinType.PinCategory=\"exec\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=07A5B76B40DF1B9E725EC6AC22FE64C5,PinName=\"self\",PinFriendlyName=NSLOCTEXT(\"K2Node\", \"Target\", \"Target\"),PinToolTip=\"Target\\nActor Object Reference\",PinType.PinCategory=\"object\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.Class\'\"/Script/Engine.Actor\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,LinkedTo=(K2Node_FunctionEntry_0 9F65CD67438983A7E6ED359F97C95038,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=9B757EDC4D25E2FA09C5ED8E56E0CFA7,PinName=\"NewRotation\",PinToolTip=\"New Rotation\\nRotator\\n\\nThe new rotation for the Actor.\",PinType.PinCategory=\"struct\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=/Script/CoreUObject.ScriptStruct\'\"/Script/CoreUObject.Rotator\"\',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"0, 0, 0\",AutogeneratedDefaultValue=\"0, 0, 0\",LinkedTo=(K2Node_CallFunction_7 1A8E48734B43731C2DD7BC9835866C29,),PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=53C826F5467642D1F317FD983876933B,PinName=\"bTeleportPhysics\",PinToolTip=\"Teleport Physics\\nBoolean\\n\\nWhether we teleport the physics state (if physics collision is enabled for this object). If true, physics velocity for this object is unchanged (so ragdoll parts are not affected by change in location). If false, physics velocity is updated based on the change in position (affecting ragdoll parts).\",PinType.PinCategory=\"bool\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"false\",AutogeneratedDefaultValue=\"false\",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\n CustomProperties Pin (PinId=AC336C164980FE63AEEBB2B731748FE6,PinName=\"ReturnValue\",PinToolTip=\"Return Value\\nBoolean\\n\\nWhether the rotation was successfully set.\",Direction=\"EGPD_Output\",PinType.PinCategory=\"bool\",PinType.PinSubCategory=\"\",PinType.PinSubCategoryObject=None,PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PinType.bIsUObjectWrapper=False,PinType.bSerializeAsSinglePrecisionFloat=False,DefaultValue=\"false\",AutogeneratedDefaultValue=\"false\",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)\r\nEnd Object\r\n")
Drag the function to the graph :
And connect it to event tick like so :
Thank a lot for your trying. It’s still difficult with me (I’m not developer, just use UE5 for rendering). If possible, please give step by step. Rectangle focus on point is very important. thank a lot.
Thanks a lot, this is help me so much.
This is fantastic. I can’t tell you how much time this saved me, a programming noob. Thanks for doing this for everyone to enjoy.