Hi! I don't know what happened, but my Interaction HUD is acting weird. Any object that is lower than Camera is not visible by Interaction HUD - there is no way to interact with objects that are put lower than camera. Interaction works when object is on the same height as camera, but then something strange happends - Interaction HUD is ALWAYS visible when I'm looking under the object or above it.
My interaction Source is set to "Cursor". All colliders of the Interactable Objects are set correctly. I don't know what I did, but it's very annoying. If this doesn't work properly, I won't be able to add weapons lying on the ground to pick up or collect items from killed enemies.
I don't think I do any changes in ORK Framework. I was trying to load backups but either nothing has changed or I don't have a proper backup anymore.
Here is a video:
Please for help. I can't figure it out, I check propably everything that may cause this problem.
1) Some other UI is blocking it.
2) More likely, something on the player is blocking it - is the layer your player (or child objects of the player) also hit by the raycast?
See the layer mask in Base/Control > Game Controls > Interaction Settings > Click Interactions.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
ORK will use the main camera for raycasting (e.g. to find the interactions).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Now I have removed the "WeaponCamera" camera from the stage and added it right to the player, right next to the "MainCamera", so there are currently no cameras on the stage (which is fine if the Screen Space Camera is turned off).
"WeaponCamera" is set to Depth Only and can only see the "UI" and "Weapon" layers.
"MainCamera" is set to Skybox and can see all layers except "UI" and "Weapon".
It'd be great if you can send me a small Unity test project where it happens on your end so that I can test my solution and make sure it's working for you :)
Removing the Library folder from the Unity project's folder will greatly reduce the size, e.g. upload it somewhere (dropbox) and send me the link.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
using UnityEngine;
using System.Collections.Generic;
namespace ORKFramework.Behaviours
{
public class IsORKCamera : MonoBehaviour
{
public Camera cameraComponent;
protected virtual void Reset()
{
this.cameraComponent = this.GetComponentInChildren<Camera>();
}
public virtual void SetCamera()
{
if(ORK.Initialized)
{
ORK.Game.Camera = this.cameraComponent;
}
}
protected virtual void OnEnable()
{
this.SetCamera();
}
protected virtual void Start()
{
this.SetCamera();
}
}
}
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!