private void OnChangeProfile(RenderProfileWorld profile) { if (profile == null) { return; } blockerPrefabDirty = true; blockerPrefab = profile.loadingBlockerPrefab; }
public void Initialize(RenderProfileWorld initProfile = null) { currentProfile = initProfile != null ? initProfile : defaultProfile; if (currentProfile == null) { Debug.Log("Default profile should never be null!"); return; } currentProfile.avatarProfile.currentProfile = currentProfile.avatarProfile.inWorld; currentProfile.Apply(); }
private void OnChangeProfile(RenderProfileWorld profile) { if (profile == RenderProfileManifest.i.defaultProfile) { dayModeButton.gameObject.SetActive(false); nightModeButton.gameObject.SetActive(true); } else { dayModeButton.gameObject.SetActive(true); nightModeButton.gameObject.SetActive(false); } }
private void OnChangeProfile(RenderProfileWorld profile) { if (profile == RenderProfileManifest.i.defaultProfile) { dayModeButton.gameObject.SetActive(false); nightModeButton.gameObject.SetActive(true); if (moreMenuAnimator.isVisible) { nightModeButton.PlayAnimation(TaskbarMoreMenuButton.AnimationStatus.Visible); } } else { dayModeButton.gameObject.SetActive(true); nightModeButton.gameObject.SetActive(false); if (moreMenuAnimator.isVisible) { dayModeButton.PlayAnimation(TaskbarMoreMenuButton.AnimationStatus.Visible); } } }
private void OnChangeProfile(RenderProfileWorld profile) { blockerPrefabDirty = true; blockerPrefab = profile.loadingBlockerPrefab; }