Example #1
0
 /// <summary>
 /// Returns the text to use for exporting this property to header file.
 /// </summary>
 /// <param name="extendedTypeText">for property types which use templates, will be filled in with the type</param>
 /// <param name="cppExportFlags">flags for modifying the behavior of the export</param>
 /// <returns></returns>
 public string GetCPPType(string extendedTypeText = null, uint cppExportFlags = 0)
 {
     if (extendedTypeText == null)
     {
         using (FStringUnsafe resultUnsafe = new FStringUnsafe())
         {
             Native_UProperty.GetCPPType(Address, IntPtr.Zero, cppExportFlags, ref resultUnsafe.Array);
             return(resultUnsafe.Value);
         }
     }
     else
     {
         unsafe
         {
             using (FStringUnsafe extendedTypeTextUnsafe = new FStringUnsafe(extendedTypeText))
                 using (FStringUnsafe resultUnsafe = new FStringUnsafe())
                 {
                     fixed(FScriptArray *extendedTypeTextUnsafePtr = &extendedTypeTextUnsafe.Array)
                     {
                         Native_UProperty.GetCPPType(Address, (IntPtr)extendedTypeTextUnsafePtr, cppExportFlags, ref resultUnsafe.Array);
                         return(resultUnsafe.Value);
                     }
                 }
         }
     }
 }