game(scripts): standardise DrawerDynamicJointConfiguration
This commit is contained in:
parent
d326e662dd
commit
71b7a3b919
1 changed files with 17 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
/*
|
||||
* Author: Mark
|
||||
* Date: 31/1/2025
|
||||
* Description: Dynamic configuration script for a drawer interactable
|
||||
*/
|
||||
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.XR.Interaction.Toolkit.Interactables;
|
||||
|
@ -8,14 +14,16 @@ public class DrawerDynamicJointConfiguration : MonoBehaviour
|
|||
{
|
||||
[Header("mark's all-in-one dynamic drawer component")]
|
||||
[Space(10)]
|
||||
[HelpBox("make sure every child inside both prefabs are under the" +
|
||||
"'Interactable Environment' layer.\n\n" +
|
||||
"whatever non-standard (a la ProBuilder) object geometry under the " +
|
||||
"interactable prefab should have a convex mesh collider if the console nags about it!\n\n" +
|
||||
"any Curve Interaction Casters (a la 'XR Origin (VR)' > 'Camera Offset' > '... Controller' " +
|
||||
"> 'Near-Far Interactor' > 'Curve Interaction Caster') should be have the " +
|
||||
"'Interactable Environment' layer included in its' Raycast Mask.",
|
||||
HelpBoxMessageType.Error)]
|
||||
#if UNITY_EDITOR
|
||||
[HelpBox("make sure every child inside both prefabs are under the" +
|
||||
"'Interactable Environment' layer.\n\n" +
|
||||
"whatever non-standard (a la ProBuilder) object geometry under the " +
|
||||
"interactable prefab should have a convex mesh collider if the console nags about it!\n\n" +
|
||||
"any Curve Interaction Casters (a la 'XR Origin (VR)' > 'Camera Offset' > '... Controller' " +
|
||||
"> 'Near-Far Interactor' > 'Curve Interaction Caster') should be have the " +
|
||||
"'Interactable Environment' layer included in its' Raycast Mask.",
|
||||
HelpBoxMessageType.Error)]
|
||||
#endif
|
||||
[Space(10)]
|
||||
[SerializeField]
|
||||
private MovementAxis movementAxis = MovementAxis.Z;
|
||||
|
|
Loading…
Add table
Reference in a new issue