Hello,
my editor crashes if I set material of component using function. If I set material without function it works, but if I use function for it, it crashes.
Here is working (no crashing logic - without function):
Here is setting material function (crashing, but code looks same):
And here is node linking with that function:
Where can be problem? I need to have it in function.