示例#1
0
        /// <summary>
        /// Gets ObjectInitializer for the currently constructed object. Can only be used inside of a constructor of UObject-derived class.
        /// </summary>
        public static FObjectInitializer Get()
        {
            FObjectInitializer result            = new FObjectInitializer();
            IntPtr             objectInitializer = Native_FObjectInitializer.Get();

            if (objectInitializer != IntPtr.Zero)
            {
                result.NativeObject            = Native_FObjectInitializer.GetObj(objectInitializer);
                result.NativeObjectInitializer = objectInitializer;
            }
            return(result);
        }
示例#2
0
 /// <summary>
 /// Return the object that is being constructed
 /// </summary>
 public UObject GetObj()
 {
     return(GCHelper.Find(Native_FObjectInitializer.GetObj(NativeObjectInitializer)));
 }
示例#3
0
 public FObjectInitializer(IntPtr nativeObjectInitializer)
 {
     NativeObject = nativeObjectInitializer == IntPtr.Zero ?
                    IntPtr.Zero : Native_FObjectInitializer.GetObj(nativeObjectInitializer);
     NativeObjectInitializer = nativeObjectInitializer;
 }
 public FObjectInitializer(IntPtr nativeObjectInitializer)
 {
     NativeObject            = Native_FObjectInitializer.GetObj(nativeObjectInitializer);
     NativeObjectInitializer = nativeObjectInitializer;
 }