Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

(version 1.1 and godot 4.1.2) i'm getting the following errors when building:

A topic by flow created Oct 14, 2023 Views: 172 Replies: 1
Viewing posts 1 to 2
/home/myname/Documents/GodotProjects/StealthGame/addons/assetplacer/assetPalette/previewGeneration/PreviewRenderingViewport.cs(18,31): The type of the exported field is not supported: 'AssetPlacer.PreviewRenderingViewport._environment'
/home/myname/Documents/GodotProjects/StealthGame/addons/assetplacer/assetPalette/previewGeneration/PreviewRenderingViewport.cs(18,19): Namespace '<global namespace>' contains a definition conflicting with alias 'Environment'

i’m not skilled enough to debug this myself. please help, thanks

Developer (1 edit)

Hello flow!

I'm sorry for the late reply. I think you can fix the error by opening the PreviewRenderingViewport script, replacing line 18 with 

    [Export] private Godot.Environment _environment;

and then removing line 11, that says 

    using Environment = Godot.Environment; 

Don't forget to save and press the "Build" button in the top right corner of Godot afterwards.

Please let me know, if this fixed your issue. I will then include this fix in the next version accordingly.