top of page

VR Code Lock

This is a code lock class. Player can type password by pressing the buttons.

Class name:

Include:

Type:

Lines of code:

AVR_CodeLock

#include "VR/VR_Actors/VR_CodeLock.h"

Interactable Actor

336

​General Information

Description

VR Code Lock is a class which has a passcode functional.


Components

  • Body_Mesh - This is a Static Mesh Component.

  • Btn_Num1-9,0,Enter,Delete - This is Child Actor Components of VR Button class(See VR Button Class).

  • TextRender - This is Text Render Component which displays current passcode.


Settings

  • Password - This is an integer variable which is a passcode.

  • FallInDistance - This is a float variable which is fall in distance of each button.

  • Return Force - This is a float value which indicates return to initial position forceof each button.

  • Velocity Strength - This is a float value which indicates velocity strength of each button.

  • Max Force - This is a float value which indicates maximum return force value of each button.

  • Slide Direction - This is a vector value which indicates in what direction buttons can be pushed(-1 means inverted direction).

Blueprint API Reference

Public Member Functions

 

Is Password Correct 

Output
  bool
 

Update Return Force

Input
 float Force
 float Velocity
 float Max_Force
 

Public Attributes

 

int 	Password
 
 

float 	FallInDistance
 
 

float 	ReturnForce
 
 

float 	VelocityStrength
 
 

float 	MaxForce
 
 

FVector 	SlideDirection
 


bottom of page