Ejemplo n.º 1
0
        private static void UpdateOwnerClasses()
        {
            if (!hasClasses)
            {
                if (worldClass == IntPtr.Zero)
                {
                    worldClass = UClass.GetClassAddress("/Script/Engine.World");
                }
                if (gameInstanceClass == IntPtr.Zero)
                {
                    gameInstanceClass = UClass.GetClassAddress("/Script/Engine.GameInstance");
                }
                hasClasses = worldClass != IntPtr.Zero && gameInstanceClass != IntPtr.Zero;

                if (FBuild.WithEditor)
                {
                    if (editorEngineClass == IntPtr.Zero)
                    {
                        editorEngineClass = UClass.GetClassAddress("/Script/UnrealEd.EditorEngine");
                    }
                    hasClasses = hasClasses && editorEngineClass != IntPtr.Zero;
                }
            }
        }