- Unreal Engine
I was trying to figure out how to add a Matrix4x4 as a node option, I see it's only global or constant. I know you can't have a property of type Matrix, but in code you can define a matrix and then in c# you can do material.SetMatrix(). Is there a way to do a node that is like that type of a variable? Like a 'scriptable matrix property' or something?
If not, is this something you will add in the future? This would be helpful for all types, Matrix, Textures, floats, etc. I know the node editor won't have any way of 'live editing' the value, but it would be helpful.
My case in particular is that I'm trying to pass a matrix in for a Texture Matrix. I can do this with separate math for translation, rotation, etc. I'd prefer to do a matrix.
You could previously mark a Matrix as a property, it looks like under the hood is was just a global variable though.
exerion wrote:We're using Unity's MaterialPropertyBlock.SetMatrix to pass in a matrix to our materials.
Users browsing this forum: No registered users and 2 guests