Skip to main content

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

Doesn't work in Unity 2018

A topic by pfc created Jun 04, 2018 Views: 698 Replies: 3
This topic is archived. It is unlisted and no new posts can be made.
Viewing posts 1 to 5
(2 edits)

All versions of Unity 2018 require that all declared properties on a Compute Shader are set for the shader to work; this seems to not be the case. Couldn't get it to work in 2018 at all. Works fine in 2017.2.

Any plans / ETA for 2018 support?


UPDATE: seems it works when upgrading an older project to 2018, but doesn't work when directly importing in 2018.

I just tried importing the .unitypackage in Unity 2018 and didn't get any errors. Also, there aren't any compute shaders in the Raymarching Toolkit. Can you post the error you're getting?

I have OS X 10.13.2 and Unity 2018.2.0b9 installed from Unity Hub. I imported the Raymarching Toolkit unityproject into a new empty project. During the import I got several warnings, which I did not write down. I then attempted to add a "Raymarcher" object to the project by right-clicking. Upon adding, I got the following error.

On 2017.4.6f1, I do not have any problems with the raymarch toolkit at all. If I create a working raymarch-toolkit scene in 2017.4.6f1, and import it into 2018.2.0b9, I get again an exception concerning set_colorKeys when I hit "play" and the scene does not run.

UnityException: set_colorKeys is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'ObjectSnippet'.

See "Script Serialization" page in the Unity Manual for further details.
RaymarchingToolkit.GradientTexture.get_Default () (at <f3d48e4ad67446a5b3113996fcbb6ecb>:0)
RaymarchingToolkit.GradientTexture..ctor () (at <f3d48e4ad67446a5b3113996fcbb6ecb>:0)
UnityEngine.Resources:Load(String)
RaymarchingToolkit.RaymarchingPreferences:get_Instance()
RaymarchingToolkit.Raymarcher:get_BlitMaterial()
RaymarchingToolkit.Raymarcher:EnsureCommandBuffer(Camera)
RaymarchingToolkit.Raymarcher:OnAnyCameraPreRender(Camera)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Ah, that is super helpful, thanks for the details Andi—I'll have a fix uploaded within a day or two.

archived this topic