Skip to content

Instantly share code, notes, and snippets.

@koster
Created August 19, 2024 21:36
Show Gist options
  • Save koster/e845d9031db9134b941c88ccc5f48cbe to your computer and use it in GitHub Desktop.
Save koster/e845d9031db9134b941c88ccc5f48cbe to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RaycastInverter : Mask
{
public override bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera)
{
return !base.IsRaycastLocationValid(sp, eventCamera);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment