private void OnPickedFromCreationLibrary(ActorableSearchResult searchResult) { VoosActor actor = assetSearch.RequestActor(searchResult, Vector3.zero, Quaternion.identity, Vector3.one); actor.SetPreferOffstage(true); CloseAndReturn(true, actor.GetName()); }
void SpawnEvent() { // Only actually create the actor for local. For remotes, this is purely visual. if (isLocal) { VoosActor _newactor = assetSearch.RequestActor(result, spawnPosition, spawnRotation, spawnScale); _newactor.SetSpawnPosition(_newactor.transform.position); _newactor.SetSpawnRotation(_newactor.transform.rotation); if (isOffstage) { _newactor.SetPreferOffstage(true); } onActorCreated?.Invoke(_newactor); newActorWizard.MaybeShow(_newactor); } destructionDesired = true; Destroy(previewGameobject); }