rayxuln/spine-runtime-for-godot

The selected resource (SpineSkeletonJsonDataResource) does not match any type expected for this property (SpineAnimationStateDataResource).

Closed this issue · 4 comments

I tried to export with either binary and json but still not working.
I export with default settings + packing atlas. I'm using spine 3.8.97 ESS

04_04-03-35_843

Did you assign a SpineSkeletonJsonDataResource type resource to a SpineAnimationStateDataResource type property?

eeeeeh... I thought that thing means the spine json file. ah sorry my bad. Now I found the way to use it. Thank you for the module sir.

one more question

Compiling godot for debug (-Od flag) will severely impact performance Compile with -O2 flag for godot engine and run linker
can double fps

But how do I input the flag?

You can learn the details from https://docs.godotengine.org/en/stable/development/cpp/binding_to_external_libraries.html

Import('env')

env_tts = env.Clone()
env_tts.add_source_files(env.modules_sources, "*.cpp")
env_tts.Append(CCFLAGS=['-O2']) # Flags for C and C++ code
env_tts.Append(CXXFLAGS=['-std=c++11'])