Installation
This guide covers installing C4G for both Unity and standalone .NET projects.
System Requirements
Unity Package
- Unity Version: 2019.4 or later
- Target Framework: .NET Standard 2.0 or .NET 4.x
- Operating System: Windows, macOS, or Linux
- Supported Platforms: Editor only (runtime loading of configs works on all platforms)
Standalone .NET Package
- .NET Version: .NET Standard 2.0 compatible
- Operating System: Cross-platform (Windows, macOS, Linux)
Unity Package Installation
Method 1: Unity Package Manager (Recommended)
-
Download the latest
.unitypackagefrom GitHub Releases -
In Unity, open the Package Manager:
Window → Package Manager
-
Import the custom package:
Assets → Import Package → Custom Package- Select the downloaded
C4G-v*.unitypackagefile - Click
Importto import all files
Method 2: Manual Installation
-
Download and extract the latest release from GitHub
-
Copy the
C4Gfolder to your Unity project:YourProject/
└── Assets/
└── C4G/
├── Core/
├── Editor/
├── Plugins/
└── package.json -
Unity will automatically detect and import the package
Verify Installation
After installation, verify C4G is properly installed:
- Open Unity Editor
- Check the menu bar for
Window → C4G - You should see two menu items:
Window → C4G → SettingsWindow → C4G → Generate
If these menu items appear, the installation was successful!
.NET Standard Package Installation
For standalone .NET projects, install C4G via NuGet:
Using .NET CLI
dotnet add package C4G
Using Package Manager Console (Visual Studio)
Install-Package C4G
Using PackageReference
Add to your .csproj file:
<ItemGroup>
<PackageReference Include="C4G" Version="0.0.4" />
</ItemGroup>
Dependencies
C4G includes the following dependencies (automatically included):
Google Sheets API
Google.Apis.dllGoogle.Apis.Core.dllGoogle.Apis.Auth.dllGoogle.Apis.Sheets.v4.dll
JSON Serialization
Newtonsoft.Json.dll
These dependencies are located in Assets/C4G/Plugins/ for Unity installations.
Post-Installation Setup
After installing C4G, you'll need to:
- Configure Google Sheets API - OAuth 2.0 Setup Guide
- Set up your first Google Sheet - Google Sheets Setup Guide
- Configure C4G Settings - Open
Window → C4G → Settingsin Unity
Updating C4G
Unity Package
- Download the latest version from GitHub Releases
- Delete the existing
Assets/C4Gfolder (backup your generated configs first!) - Import the new
.unitypackagefollowing the installation steps above - Reconfigure your C4G settings if needed
.NET Package
dotnet add package C4G --version [new-version]
Or update via Package Manager in Visual Studio.
Troubleshooting
"C4G menu items not appearing"
Solution:
- Restart Unity Editor
- Check Console for import errors
- Ensure Unity version is 2019.4 or later
"Google APIs DLL errors"
Solution:
- Verify all DLLs in
Assets/C4G/Plugins/are imported - Check the Inspector for each DLL - ensure they're set for Editor platform
- Reimport the package if needed
"Namespace 'C4G' not found"
Solution:
- Check your assembly definition references C4G.Core
- Ensure the C4G.Core.asmdef file exists
- Restart Unity to refresh assembly references
"Version conflicts with existing packages"
Solution:
- C4G uses
Newtonsoft.Json.dll- if you have another version, you may need to remove one - For Google APIs conflicts, ensure you're not importing another Google Sheets integration
Uninstallation
Unity Package
- Close Unity Editor
- Delete the
Assets/C4Gfolder from your project - Delete any generated config files (optional)
- Restart Unity
.NET Package
dotnet remove package C4G
Next Steps
- OAuth 2.0 Setup - Configure Google Sheets API access
- Google Sheets Setup - Create your first config sheet
- Editor Workflow - Learn how to use C4G in Unity Editor