Hi guys,
first experience for me with UE4 and first post here! I made a blueprint script to handle the outline on selected objects following this tutorial.
The outline seems to work fine, but at the end of the simulation I get an error message:
Apart from what [USER=“290035”]Grzegorz S[/USER] said, add an Is Valid node at the beginning of the function and pass the “New Actor” through it. You can then make sure that the remaining logic gets executed only if it returns valid.
How are you getting the New & Old Actor references that are being passed to this function? A screenshot of that could be helpful in figuring out the issue.
Also, after the IsValid node mentioned earlier, try connecting its “Is Not Valid” output to the Branch Node. This way, your Old Actor should still render in the Custom Depth pass.