Implement UI camera which is only active during certain events

Offen
#292 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
csharp, unity
Bereich
game-dev

Rechercherichtung

Start by finding the UI and spectator camera setups and the code that manages dialog and menu events; the issue does not name specific files or tests. Read how those events currently change the culling mask, then trace the same behavior for the spectator camera. Done when the UI cameras activate only during the listed events and hands render correctly over other objects.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

good first issue

Until now, UI camera was visible all the time. It rendered UI + Hands always on top. The following issues occured:

  1. Hands were never hidden behind weapons when in their hand.
  2. (untested) Performance of another camera might impact our game
Image Image

I propose the following solution:

  1. Let's have UICamera only active, when certain events appear
    2. Hero is in Dialog (Show dialog window + hands on top of others)
    3. Menu is open

Both events are managed by use. If they happen, activate/deactivate the CullingMask change and UICamera.

Important: Please take care to do the same with SpectatorCamera (Create second UI camera and activate/deactivate at the right times).

To reimplement, here is the old UICamera setup:

Image
Image Image
Image
Vorherrschende Sprache
C#
Sterne
33
Forks
1
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
51

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Gothic-Unity-Project/Gothic-Unity

Alle Issues in Gothic-Unity-Project/Gothic-Unity

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.