acg-importer is a Unity package that simplifies the process of importing textures from AmbientCG into Unity.
preview.mp4
- Unity Custom Editor: Utilize a custom editor within Unity for a user-friendly experience, complete with tooltips for more information.
- Single and Bulk Import Options: Import materials and textures individually or in bulk through both single and batch ZIP imports.
- AmbientCG NextCloud Support: Bulk import files downloaded via Nextcloud, an AmbientCG Patreon-only feature that allows for easier batch downloading.
- Shader Flexibility: Compatible out of the box with HDRP, URP, and BiRP lit shaders, as well as any custom shaders by adjusting shader properties during the import process.
- Optimized Texture Handling: Save only required textures and generate new swizzled ones when necessary depending on the shader properties.
Before proceeding with this method, ensure you have Git installed on your system.
- Open Unity and navigate to Window → Package Manager.
- Click on the top left button with a "+" on it to add a new package. In the dropdown, select "Add package from git URL".
- Enter the following git URL:
https://github.com/z3lx/acg-importer.git
- Go to the Releases section of this repository.
- Download the latest available Unity package.
- Open your Unity project and navigate to the "Assets" tab at the top.
- Choose "Import Package," then select "Custom Package...".
- Locate and select the downloaded Unity package.
- Follow the prompts to complete the import process.
- Open the import window located in Tools → ACG Importer.
- Set your import preferences:
Parameter Type Description Input Path string
The directory or zip file to import. This can be a single zip file, a single folder, a parent directory containing multiple zip files, or a parent directory containing multiple subfolders with associated textures to import. Output Path string
The relative path within the Unity project where the imported textures and materials will be saved. Create Category Directory bool
If enabled, a separate directory named after the material category (e.g., 'Bricks' for 'Bricks090' material) will be created within the OutputPath. The imported textures and materials of that category will be saved in this directory. Create Material Directory bool
If enabled, a separate directory named after the material will be created within the OutputPath. The imported textures and materials of that material will be saved in this directory. Shader Shader
The shader to be used for the imported materials. Shader Properties List<ShaderProperty>
The shader properties to be set on the material. Type Type
The type of the shader property. Name string
The name of the shader property. Value object
The value of the shader property. - Import textures and materials.
Feel free to report issues or contribute to the development of this project!
This project is licensed under the MIT License. Textures imported from ambientCG are licensed under CC0.