# Get HMDDevice Name: Needs clarification.

**URL:** <https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine\
**Created:** [November 19, 2016, 6:40am UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711 "2016-11-19T06:40:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaviorNT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaviorNT](https://forums.unrealengine.com/u/SaviorNT)\
**Post date:** [November 19, 2016, 6:40am UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/1 "2016-11-19T06:40:24Z")

</div>

In the documentation for Get HMDDevice Name, it is missing what types of HMD devices we can call.

> **[Get HMDDevice Name](https://docs.unrealengine.com/5.3/en-US/BlueprintAPI/Input/HeadMountedDisplay/GetHMDDeviceName/)**
>
> Get HMDDevice Name

> [@Current Documentation - Get HMDDevice Name](#):
>
> Get HMDDevice Name
> 
> Returns the name of the device, so scripts can modify their behaviour appropriately
> 
> Target is Head Mounted Display Function Library

This should follow the same structure that Get Platform Name has (I put in bold the part that is needed):

The documentation should follow the same structure as Get Platform Name: [Get Platform Name | Unreal Engine 5.2 Documentation](https://docs.unrealengine.com/latest/INT/BlueprintAPI/Game/GetPlatformName/index.html)

> [@Current Documentation - Get Platform Name](#):
>
> Get Platform Name
> 
> Returns the string name of the current platform, to perform different behavior based on platform. **(Platform names include Windows, Mac, IOS, Android, PS4, XboxOne, HTML5, Linux)**
> 
> Target is Gameplay Statics

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_dcd8cd3c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_dcd8cd3c](https://forums.unrealengine.com/u/anonymous_user_dcd8cd3c)\
**Post date:** [January 26, 2017, 1:02am UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/2 "2017-01-26T01:02:10Z")

</div>

I second this, currently it’s very confusing because the existing E\_HMDDeviceType still exists, and it doesn’t line up with the new Name options (e.g. “Morpheus” vs. “PSVR”).

---

<div class="post-metadata">

**Author:** ![BlackFangTech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackFangTech](https://forums.unrealengine.com/u/BlackFangTech)\
**Post date:** [February 7, 2017, 9:30pm UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/3 "2017-02-07T21:30:29Z")

</div>

Could someone please post a list of what names this function returns for what devices? I cannot find the information anywhere.

---

<div class="post-metadata">

**Author:** ![mstummer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mstummer](https://forums.unrealengine.com/u/mstummer)\
**Post date:** [February 15, 2018, 3:50am UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/4 "2018-02-15T03:50:00Z")

</div>

Based on the new VR template, (some) possible values seem to be:

OculusHMD  
SteamVR  
PSVR

I’m wondering though what the value for the GearVR is… does anyone know?!

---

<div class="post-metadata">

**Author:** ![MothDoctor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mothdoctor/32/1194551_2.png) [@MothDoctor](https://forums.unrealengine.com/u/MothDoctor)\
**Post date:** [February 15, 2018, 2:40pm UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/5 "2018-02-15T14:40:27Z")

</div>

Isn’t GearVR appears as OculusHMD?  
At least its configuration for packaging is located in Oculus folder.

These are all the names I found by simply looking at references to this function.  
SimpleHMD  
OculusHMD  
SteamVR  
PSVR  
OSVR  
AppleARKit  
FGoogleVRHMD  
FGoogleARCoreHMD

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [February 15, 2018, 4:01pm UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/6 "2018-02-15T16:01:57Z")

</div>

> [@Just Krishna](#):
>
> Isn’t GearVR appears as OculusHMD?  
> At least its configuration for packaging is located in Oculus folder.
> 
> These are all the names I found by simply looking at references to this function.  
> SimpleHMD  
> OculusHMD  
> SteamVR  
> PSVR  
> OSVR  
> AppleARKit  
> FGoogleVRHMD  
> FGoogleARCoreHMD

You are replying to an old thread, the GearVR module was merged into the OculusHMD two engine versions ago.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c148ce9c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c148ce9c](https://forums.unrealengine.com/u/anonymous_user_c148ce9c)\
**Post date:** [February 26, 2019, 6:55pm UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/7 "2019-02-26T18:55:31Z")

</div>

Updated list as of UE 4.21:

MagicLeap  
AppleARKit  
FGoogleARCoreXRTrackingSystem  
FGoogleVRHMD  
PSVR  
OSVR  
SimpleHMD  
SteamVR  
OculusHMD  
WindowsMixedRealityHMD

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [July 5, 2019, 1:38pm UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/8 "2019-07-05T13:38:02Z")

</div>

what a mess… Any reason they didn’t make a enum?

Edit: Well, as long as the name is a pass through from the VR platform (SteamVR/Oculus), its better to go with the name. So you dont need to update the project to a new engine version to support new HMDs (which would be the case for an enum)

---

<div class="post-metadata">

**Author:** ![Mattlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Post date:** [May 4, 2020, 3:32am UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/9 "2020-05-04T03:32:40Z")

</div>

This is sloppier than my ex after an all nighter. This in no way returns the device name. It returns the platform name that the device is running on. Were you guys high when you named this?

---

<div class="post-metadata">

**Author:** ![tommybazar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tommybazar](https://forums.unrealengine.com/u/tommybazar)\
**Post date:** [May 6, 2020, 8:22am UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/10 "2020-05-06T08:22:05Z")

</div>

> [@Mattlauk](#):
>
> This is sloppier than my ex after an all nighter. This in no way returns the device name. It returns the platform name that the device is running on. Were you guys high when you named this?

This is now officially my favorite post on unreal forums.  
Sums up my feelings about working with UE the last couple years into a single sentence.

---

<div class="post-metadata">

**Author:** ![Mattlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Post date:** [May 13, 2020, 3:57pm UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/11 "2020-05-13T15:57:02Z")

</div>

After watching the UE5 showcase, I suppose I can forgive you for this. Probably had all of your real smart people working on 5. 5 looks really super awesome! I hope all the VR features will be there day 1.

---

<div class="post-metadata">

**Author:** ![CaelRowley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CaelRowley](https://forums.unrealengine.com/u/CaelRowley)\
**Post date:** [March 30, 2021, 8:57pm UTC](https://forums.unrealengine.com/t/get-hmddevice-name-needs-clarification/78711/12 "2021-03-30T20:57:55Z")

</div>

I’m using **Unreal 4.26**  
I may be doing something very nooby but how do you even call this function? I have

```auto

#include "IXRTrackingSystem.h"
#include "IHeadMountedDisplay.h"
#include "HeadMountedDisplayFunctionLibrary.h"

// Sets default values
APlayerCharacter::APlayerCharacter()
{
    FName deviceA = GEngine->XRSystem->GetSystemName(); // <== this works and compiles
    FName deviceB = GetHMDDeviceName(); // <== GetHMDDeviceName is undefined

    IHeadMountedDisplay* hmd = GEngine->XRSystem->GetHMDDevice();
    FName deviceC = hmd->GetHMDDeviceName() // <== also doesn't work
}

```

I’ve tried so many imports and different variations and can’t find the proper way to call this

Edit:

I misunderstood where the function `GetHMDDeviceName` was defined, I looked into `HeadMountedDisplayFunctionLibrary` and realsied that it was a libarary helper function and not a function on the hmd device so incase anyone else struggled with this the solution is here:

```auto

#include "HeadMountedDisplayFunctionLibrary.h"

APlayerCharacter::APlayerCharacter()
{
    FName deviceName = UHeadMountedDisplayFunctionLibrary::GetHMDDeviceName();
}

```
