private void UpdateIsPlayingAsRobot() { VoosActor playerActor = GetPlayerActor(); if (playerActor == null || userBody == null) { return; } userBody.SetIsPlayingAsRobot(playerActor.GetRenderableUri() == VoosActor.AVATAR_EXPLORER_URI); }
void OnCreationLibraryResult(ActorableSearchResult _result) { string prevRenderableUri = actor.GetRenderableUri(); string newRenderableUri = _result.renderableReference.uri; undoStack.PushUndoForActor( actor, $"Set asset for {actor.GetDisplayName()}", actor => { actor.SetRenderableUri(newRenderableUri); actor.ApplyPropertiesToClones(); }, actor => { actor.SetRenderableUri(prevRenderableUri); actor.ApplyPropertiesToClones(); }); creationLibrary.gameObject.SetActive(false); }