UGoogleVRLaserVisualComponent::GetLaserMaterial

Get the MaterialInstanceDynamic used to represent the laser material.

Windows
MacOS
Linux

Override Hierarchy

UGoogleVRLaserVisual::GetLaserMaterial()

UGoogleVRLaserVisualComponent::GetLaserMaterial()

References

Module

GoogleVRController

Header

/Engine/Plugins/Runtime/GoogleVR/GoogleVRController/Source/GoogleVRController/Classes/GoogleVRLaserVisualComponent.h

Include

#include "GoogleVRLaserVisualComponent.h"

Source

/Engine/Plugins/Runtime/GoogleVR/GoogleVRController/Source/GoogleVRController/Private/GoogleVRLaserVisualComponent.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="GoogleVRMotionController",
          Meta=(Keywords="Cardboard AVR GVR"))
virtual UMaterialInstanceDynamic * GetLaserMaterial() const

Remarks

Get the MaterialInstanceDynamic used to represent the laser material. Can be used if you desire to modify the laser at runtime (i.e. change laser color when pointing at object).

Returns

laser dynamic material instance.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss