You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the code I’m using. And yes I know I’m created the same material twice. I’m just doing this as a test. 2nd material will be entered once I get this working.
functioninit(self)
-- Store references to the materialsself.material1=hash("/assets/rainbow/rainbow.materialc")
self.material2=hash("/assets/rainbow/rainbow.materialc")
--self.material2 = resource.load("/assets/materials/holographic/holographic.materialc")endfunctionon_message(self, message_id, message, sender)
ifmessage_id==hash("change_shader") thenifmessage.shader==1thengo.set("#sprite", "material", self.material1)
elseifmessage.shader==2thengo.set("#sprite", "material", self.material2)
end-- ... handle more shaders as neededendend
Expected behavior (REQUIRED)
It should give an error instead of crashing.
Is it a private platform, and a platform specific issue? (i.e. would it break your NDA?)
Then please report your issue in the corresponding extension repository!
Describe the bug (REQUIRED)
This is the code I’m using. And yes I know I’m created the same material twice. I’m just doing this as a test. 2nd material will be entered once I get this working.
Expected behavior (REQUIRED)
It should give an error instead of crashing.
Defold version (REQUIRED):
v 1.8.0
Platforms (REQUIRED):
WIndows 11
Minimal repro case project (OPTIONAL):
repro.zip
Logs (OPTIONAL):
_crash.dmp
Workaround (OPTIONAL):
If there is a workaround, please describe it here.
Screenshots (OPTIONAL):
If applicable, add screenshots to help explain your problem.
Additional context (OPTIONAL):
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: