コード例 #1
0
    public bool IsNoteInBoxArea(GameObject Note)
    {
        Vector3 ScreenPosition = Camera.WorldToScreenPoint(Note.transform.position);
        Vector2 WindowPosition = TunerScreenToWindowPosition(ScreenPosition, UsingWindow);

        return(LimMathUtil.InRect(WindowPosition, BoxSelectionPanel));
    }
コード例 #2
0
    public bool IsMotionInBoxArea(GameObject Motion)
    {
        Vector3 ScreenPosition = Camera.WorldToScreenPoint(Motion.transform.position);
        Vector2 ScaledPosition = new Vector2(ScreenPosition.x, ScreenPosition.y - Screen.height) / Screen.width * 1920f;
        Vector2 WindowPosition = TimelineToWindowPosition(ScaledPosition, UsingWindow);

        return(LimMathUtil.InRect(WindowPosition, BoxSelectionPanel));
    }