You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.6 KiB
45 lines
1.6 KiB
using NaughtyAttributes; |
|
using UnityEngine; |
|
|
|
namespace UDE_HAND_INTERACTION |
|
{ |
|
public class HandInteractionSetting : MonoBehaviour |
|
{ |
|
[Space] |
|
public InteractType interactType; |
|
[DisableIf("SeparateFinger"), Range(0, 1)] |
|
public float ActiveIntense; |
|
public bool OperationInsideObject = false; |
|
[Space] |
|
public bool SeparateFinger; |
|
|
|
[BoxGroup("Thumb"), Label(" Active"), ShowIf("SeparateFinger")] |
|
public bool Thumb; |
|
[BoxGroup("Thumb"), Label(" Intense"), ShowIf("SeparateFinger"), Range(0, 1)] |
|
public float ThumbIntense; |
|
[BoxGroup("Index"), Label(" Active"), ShowIf("SeparateFinger")] |
|
public bool Index; |
|
[BoxGroup("Index"), Label(" Intense"), ShowIf("SeparateFinger"), Range(0, 1)] |
|
public float IndexIntense; |
|
[BoxGroup("Middle"), Label(" Active"), ShowIf("SeparateFinger")] |
|
public bool Middle; |
|
[BoxGroup("Middle"), Label(" Intense"), ShowIf("SeparateFinger"), Range(0, 1)] |
|
public float MiddleIntense; |
|
[BoxGroup("Ring"), Label(" Active"), ShowIf("SeparateFinger")] |
|
public bool Ring; |
|
[BoxGroup("Ring"), Label(" Intense"), ShowIf("SeparateFinger"), Range(0, 1)] |
|
public float RingIntense; |
|
[BoxGroup("Pinky"), Label(" Active"), ShowIf("SeparateFinger")] |
|
public bool Pinky; |
|
[BoxGroup("Pinky"), Label(" Intense"), ShowIf("SeparateFinger"), Range(0, 1)] |
|
public float PinkyIntense; |
|
|
|
public enum InteractType |
|
{ |
|
AnyFinger, |
|
AllFingers, |
|
} |
|
|
|
} |
|
|
|
}
|
|
|