Я недавно обновился до VRTK 3.3 3 из моих ранее работавших скриптов перестали работать, ссылаясь на ошибку, которую я опубликовал в заголовке.
Я попытался проверить библиотеку «Использование VRTK» и и и перейти копределение на самом деле приводит меня к сценарию, так же как и ссылки на функции, которые предположительно не существуют.
// одна из функций, вызывающая ошибку
public override void StopUsing(VRTK_InteractUse usingObject)
{
StopRecordButtonOnClickHandler();
}
// перейти к определению
открытый класс VRTK_InteractUse: MonoBehaviour {[Header ("Использовать настройки")]
[Tooltip("The button used to use/unuse a touched Interactable Object.")]
public VRTK_ControllerEvents.ButtonAlias useButton = VRTK_ControllerEvents.ButtonAlias.TriggerPress;
[Header("Custom Settings")]
[Tooltip("The Controller Events to listen for the events on. If the script is being applied onto a controller then this parameter can be left blank as it will be auto populated by the controller the script is on at runtime.")]
public VRTK_ControllerEvents controllerEvents;
[Tooltip("The Interact Touch to listen for touches on. If the script is being applied onto a controller then this parameter can be left blank as it will be auto populated by the controller the script is on at runtime.")]
public VRTK_InteractTouch interactTouch;
[Tooltip("The Interact Grab to listen for grab actions on. If the script is being applied onto a controller then this parameter can be left blank as it will be auto populated by the controller the script is on at runtime.")]
public VRTK_InteractGrab interactGrab;
/// <summary>
/// Emitted when the use toggle alias button is pressed.
/// </summary>
public event ControllerInteractionEventHandler UseButtonPressed;
/// <summary>
/// Emitted when the use toggle alias button is released.
/// </summary>
public event ControllerInteractionEventHandler UseButtonReleased;
/// <summary>
/// Emitted when a use of a valid object is started.
/// </summary>
public event ObjectInteractEventHandler ControllerStartUseInteractableObject;
/// <summary>
/// Emitted when a valid object starts being used.
/// </summary>
public event ObjectInteractEventHandler ControllerUseInteractableObject;
/// <summary>
/// Emitted when a unuse of a valid object is started.
/// </summary>
public event ObjectInteractEventHandler ControllerStartUnuseInteractableObject;
/// <summary>
/// Emitted when a valid object stops being used.
/// </summary>
public event ObjectInteractEventHandler ControllerUnuseInteractableObject;
protected VRTK_ControllerEvents.ButtonAlias subscribedUseButton = VRTK_ControllerEvents.ButtonAlias.Undefined;
protected VRTK_ControllerEvents.ButtonAlias savedUseButton = VRTK_ControllerEvents.ButtonAlias.Undefined;
protected bool usePressed;
protected VRTK_ControllerReference controllerReference
{
get
{
return VRTK_ControllerReference.GetControllerReference((interactTouch != null ? interactTouch.gameObject : null));
}
}