rayxuln / spine-runtime-for-godot

This project is a module for godot that allows it to load/play Spine skeleton animation.
MIT License
93 stars 22 forks source link

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

Closed pegasusearl closed 3 years ago

pegasusearl commented 3 years ago

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

rayxuln commented 3 years ago

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

pegasusearl commented 3 years ago

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?

rayxuln commented 3 years ago

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']) 
scottkunkel commented 3 years ago

You don’t have to worry about this. The spine component gets compiled with the right flags. It’s overwriting the defaults.

Thomas

On Sep 3, 2020, at 10:31 PM, pegasusearl notifications@github.com wrote:

 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 are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.