Ejemplo n.º 1
0
            internal static unsafe void Invoke(UObject WorldContextObject, MaterialParameterCollection Collection, Name ParameterName, float ParameterValue)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = WorldContextObject;
                *((IntPtr *)(b + 8)) = Collection;
                *((Name *)(b + 16))  = ParameterName;
                *((float *)(b + 28)) = ParameterValue;
                Main.GetProcessEvent(KismetMaterialLibrary.DefaultObject, SetScalarParameterValue_ptr, new IntPtr(p));;
            }
        }
Ejemplo n.º 2
0
            internal static unsafe LinearColor Invoke(UObject WorldContextObject, MaterialParameterCollection Collection, Name ParameterName)
            {
                long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L };
                byte *b = (byte *)p;

                *((IntPtr *)(b + 0)) = WorldContextObject;
                *((IntPtr *)(b + 8)) = Collection;
                *((Name *)(b + 16))  = ParameterName;
                Main.GetProcessEvent(KismetMaterialLibrary.DefaultObject, GetVectorParameterValue_ptr, new IntPtr(p));;
                return(*((LinearColor *)(b + 28)));
            }
        }