docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Modify GDK settings with C# script

    You can use a C# script to modify the GDK settings, which is useful when automating your build process. The following code example demonstrates how to change the state of the Build for Microsoft GDK option for the selected build target on the currently active GDK settings.

        // Get the platform specific settings associated with the active build target
        var platformGdkSettings = GdkSettings.GetActivePlatformSettings(EditorUserBuildSettings.activeBuildTarget);
        platformGdkSettings.targetMicrosoftGdk = !platformGdkSettings.targetMicrosoftGdk;
    
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)