Implement UI camera which is only active during certain events

Ouverte
#292 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
csharp, unity
Domaine
game-dev

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
C#
Étoiles
33
Forks
1
Merge moyen
1 j 21 h
PR mergées (30 j)
56

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Gothic-Unity-Project/Gothic-Unity

Toutes les issues de Gothic-Unity-Project/Gothic-Unity

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.