# Cannot override Leap Motion Plugin (not even default SimpleHMD-\>SimpleHMDX)

**URL:** <https://forums.unrealengine.com/t/cannot-override-leap-motion-plugin-not-even-default-simplehmd-simplehmdx/427636>\
**Category:** Plugins\
**Tags:** override, leap-motion, UE4-19, unreal-engine, Plugins, question\
**Created:** [June 18, 2018, 4:39pm UTC](https://forums.unrealengine.com/t/cannot-override-leap-motion-plugin-not-even-default-simplehmd-simplehmdx/427636 "2018-06-18T16:39:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Levasseur96](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Levasseur96](https://forums.unrealengine.com/u/Levasseur96)\
**Post date:** [June 18, 2018, 4:39pm UTC](https://forums.unrealengine.com/t/cannot-override-leap-motion-plugin-not-even-default-simplehmd-simplehmdx/427636/1 "2018-06-18T16:39:48Z")

</div>

Hello,  
I am currently attempting to override the built-in Leap Motion plugin and followed this link’s tutorial: [Plugin Override](https://wiki.unrealengine.com/Override_Built_In_Plugin)

However, when I tried to override SimpleHMD to SimpleHMDX inside of project folder (not inside Engine), compiler has given me the error about this line of code:  
Path.GetDirectoryName( RulesCompiler.GetModuleFilename(“Renderer”))+"/Private",

stating that there is no GetModuleFilename. (same happened with Leap Motion overriding)

My main concern is how can I override or extend Leap Motion’s plugin, so that I can have my own version of their plugin?

Thanks
