Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

After using this last night for a few hours I can say it’s a REALLY cool plugin and works very well! One more thing to report: If there’s a canvasmodulate on the scene before adding the day/night node and I delete it, there’s an error about the editor being unable to find it. If I don’t delete it, there’s a warning that there’s going to be two canvasmodulate in the scene and that’s undefined behavior. The fix is to set the tint property to your existing Canvasmodulate node, either by making it a child or by exporting the variable.

I would recommend you expose the external nodes that get added to these if there aren’t too many so it’s easier for the dev to integrate your nodes to existing scenes 🤔 just need to add @export to them

I also have a C# project so this actually allows my code to manipulate the CanvasModulate if needed 

Thank you so much - and for testing it for hours! Both points are fixed in 1.0.2 (just uploaded):

- PLDayNight now has exported "tint" (CanvasModulate) and "sun" (DirectionalLight2D) properties, so you can assign your own nodes in the inspector or set them from C#.

- If you don't assign one, it now uses the CanvasModulate that is already in your scene and only creates its own when the scene has none - no more two-CanvasModulate warning.

- Deleting the CanvasModulate no longer throws an error; the day/night node simply picks up (or creates) another one.

Your reports are making the plugin better for everyone - if you hit anything else, keep them coming!

Sure thing, will do if I notice anything else! Thanks for being so reactive too, you’re doing good work! ❤️ 

Thank you kindly!