Cacher un acteur d'une scène suivant le niveau d'accès de l'utilisateur #593
Unanswered
JeremieDENAEGEL
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Bonjour , Est-ce que cet acteur et votre menu son contenu dans une seule et même scène ou sont-ils dans deux scènes différentes ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bonjour,
Dans mon menu, j'ai créé un Additionnel (UserSessionLevel) sur l'acteur que je veux rendre non visible si la session de l'utilisateur n'est pas de niveau "administrateur".
Je voudrais transférer mon Additionnel sur le premier acteur Empilement de ma scène (que j'ai nommé "root") pour simplifier le synapps car j'ai d'autres acteurs à cacher avec la même condition.
Quel est la synthaxe à mettre pour changer mon évènement OnInit de l'acteur afin de pointer l'additionnel d'un autre acteur ?
Voici mon script actuel sur l'acteur :
if (this.additionals.UserSessionLevel < 4 ) { this.properties.visible = 0 } else { this.properties.visible = 1 }
Merci d'avance
Beta Was this translation helpful? Give feedback.
All reactions