Search code examples
c#game-developmentgame-enginegodotgodot4

Godot: Is there a way to set custom import parameters for importing assets by code (C#)?


During getting improvement to my custom import resource plugin I faced with need of set custom (re)importing params such as: compress mode (vram compressed or etc), channel pack (optimised or RGBFriendly). But I didn't find any clues in source classes or the documentation of Godot. How can I manually import file with setting import settings precisely?

I've tried looking through various of available import-named classes (EditorImportPlugin, EditorInterface, ResourceImporterTexture), but none of them could help me in any way.


Solution

  • I found a workaround solution. Godot IDE has according settings tab for picking import defaults. enter image description here