Hi there!
I started using Generics for the first time, and I got an issue.
here an example of my function :
void test<T>( T parTarget)
{
if (parTarget as Vector3)
Vector3 TempTarget = parTarget as Vector3;
}
As you probably know, I cant use as Vector3 as Vector3 is a structure. I searched around the web for an answer, but didn’t find anything for my specific case.
If you have an idea, go for it!