[=;226611]
Hi , thanks for developing plugin, it’s great and it’s really helpful.
Anyway, i’m having a very annoying bug, every time i close a project with your plugin (or the project crashes) and i reopen it, the Hydra interface in blueprints gets lost,
so i get error:
Error /Game/FirstPerson/Blueprints/FirstPersonCharacter : Can’t find file for asset. /Script/HydraPlugin
With UE 4. BluePrint gets unopenable, and its progressions are lost forever, the only thing you can do is restore a backup, but one before you added the Hydra Interface, so it isn’t that useful, and anyway i can’t close the engine, or i’ll loose all the work.
Of course i save everything and compile blueprints and the project, and i haven’t touched the code, i’m trying with FPS default project.
I might be doing something wrong and very stupid, but i can’t find a solution.
Fortunately, UE 4.7 (Preview 8) fixes the opening problem, and you can reimport the Hydra Interface, and fix the blueprint (you need to re-add all the events anyway).
I have tried to add other default interfaces that come with UE4 and apparently, they don’t get lost after the program closes, so i’m assuming it’s a bug of Hydra Plugin, but i can’t be sure.
The Hydra Component also gets lost, both in UE 4.6 and 4.7.
i’m developing a Uni Project with UE4, Oculus Rift and Hydra, and it’s due in 2 months, that’s why i’m desperately trying to find a solution.
[/]
I’m guessing you’re using the C++ fps template? If that is the case, the problem may be related to [Plugin] Leap Motion - Event Driven - C++ - Epic Developer Community Forums to which the solution was to sub-class your C++ base character as a blueprint and then sub-class that blueprint to use your hydra component/interface. Still unsure why error occurs, but it only occurs when the base class is derived from C++ not blueprint.
[=;226611]
#Update:
i think there is a bug with your plugin in UE 4.7 that is not present in 4.6, it might be the engine.
When you press play, in the viewport, and you have changed anything in a blueprint, the first time the hydra will not send the events, you have to stop and press play again.
[/]
Haven’t had a to try 4.7 yet, will look into when it comes out of preview
[=;226611]
#Update 2…:
i also get error, which i totally believe is my fault, but you never know, it might help.
(i have included HydraDelegate.h in MyCharacter and MyProject.h in HydraDelegate.h
…
[/]
You have to add a component** and** an interface in order to receive the events. The error message you are getting is saying that whatever class you added a component to, doesn’t respond to hydra interface events, so you’re missing the interface. You also have access to conveniences classes such as hydra actor or hydra player controller which can abstract your hydra interaction away from a specific blueprint, may be a simpler way of using the plugin.