Michał Wróblewski
Michał Wróblewski
NNormal
Created by NeuroGoblin on 4/17/2024 in #🤝ask-a-question
Re-subscribing to delegate events on scene change
All good then, it wasn't clear but I felt similar vibes - good choice anyway and good luck
23 replies
NNormal
Created by NeuroGoblin on 4/17/2024 in #🤝ask-a-question
Re-subscribing to delegate events on scene change
I've got one questions @NeuroGoblin, why do you require a room with Persistence? Is it (case A) because of scene changes and you need to preserve data when changing scenes or (case B) do you need it stored "forever" for future connections to the room? I'm asking because if it's the case A, I had that in my project - an escape room with 3 chapters and players progression from chapter 1 through 3. I discussed that here and it's better to have a separate Realtime instance connected to a "session room" where all users are connected to it and the connection is continued when scene changes - so .e.g. you can keep voice chat active when scenes change. I'll try to search where I discussed that so you can check how this case matches yours.
23 replies
NNormal
Created by Ryllexya on 4/16/2024 in #🤝ask-a-question
Is there a way to make my own avatar invisible to myself but keep it visible for others?
I've got some additional notes based on my experience with avatars. Normcore got a nice RealtimeAvatarManager example you can look at. It shows how you can customize behaviour at setup of a local avatar with CreateAvatarIfNeeded() as a factory method (customize when Avatar is created locally). You can also customize local behaviour in RealtimeAvatar which is a RealtimeComponent class. You can customize at setup SetLocalPlayer() and on update in UpdateAvatarTransformsForLocalPlayer(). In RealtimeAvatar you need to make sure it's a local instance (if (_localPlayer != null)) because it exists in every Avatar instance local and remote. Also if you're interested in Meta Avatars I'd wait for Normal official sample that should appear this week.
7 replies