b3agz / UDP-Receiver-for-Unity-Godot

Designed to work with Streamer.bot, these scripts for both Unity and Godot 4 receive UDP Broadcasts and trigger custom events.
MIT License
7 stars 1 forks source link

Can_instantiate Error #1

Open AutumNova opened 5 months ago

AutumNova commented 5 months ago

Environment

  1. I started a new project in Godot 4.2.2 .NET version.
  2. Downloaded both of the Godot files from the GitHub.
  3. Brought them into my project and dragged 'StreamerBotEventManager.cs' onto my root Node2D element.

At this time, the inspector does not show the exported variable 'Port' as shown in the image below: Inspector

When attempting to run the program, I get the following error:

can_instantiate: Cannot instance script because the associated class could not be found. Script 'res://scripts/StreamerBotEventManager.cs'. Make sure the script exists and contains a class definition with a name that matches the filename of the script exactly (it's case-sensitive).

AmritpalBedi commented 4 months ago

I was having the same issue. I believe it's a godot issue which sometimes messes up if you attempt to bring in an outside script and attach it to a node. That being said, the current commit, 780d466, does not work even if you create your own script and copy/paste the info into that script. I ended up using commit 8d572b8 and that worked fine. This is in terms of godot, idk if the new commit broke anything in unity or if it was entirely my fault why the current commit wasn't working to begin with.

Guido366 commented 4 months ago

I'm having exactly the same issue, I'm trying to use the example script just to make sure i'ts picking up streamer bot's broadcast.. but I get the same error. Tried changing the name several times, did not work.