Skip to content

Commit

Permalink
demos: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jul 18, 2024
1 parent 55fb8a0 commit 15f9d92
Show file tree
Hide file tree
Showing 14 changed files with 1,206 additions and 810 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public void UIParticle_Enable(bool flag)

if (!flag)
{
#if UNITY_2023_1_OR_NEWER
foreach (var ps in FindObjectsByType<ParticleSystem>(FindObjectsInactive.Include, FindObjectsSortMode.None))
#else
foreach (var ps in FindObjectsOfType<ParticleSystem>())
#endif
{
ps.Play(false);
}
Expand Down Expand Up @@ -75,7 +79,11 @@ public void UIParticle_RandomGroup(bool flag)

public void ParticleSystem_SetScale(float scale)
{
#if UNITY_2023_1_OR_NEWER
foreach (var ps in FindObjectsByType<ParticleSystem>(FindObjectsInactive.Include, FindObjectsSortMode.None))
#else
foreach (var ps in FindObjectsOfType<ParticleSystem>())
#endif
{
ps.transform.localScale = new Vector3(scale, scale, scale);
}
Expand Down
6 changes: 3 additions & 3 deletions Assets/ProjectSettings/NanoMonitor.asset
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_NanoMonitorEnabled: 1
m_BootSceneNameRegex: .*
m_DevelopmentBuildOnly: 1
m_DevelopmentBuildOnly: 0
m_EnabledInEditor: 1
m_AlwaysIncludeAssembly: 1
m_InstantiateOnLoad: 1
m_Prefab: {fileID: 7211429669315726685, guid: b73940fc30a2f4eb9a73783e9c1f8da6,
type: 3}
m_Opened: 1
m_Interval: 0.5
m_Anchor: 1
m_Anchor: 0
m_Width: 750
m_CustomMonitorItems:
- m_Format: Screen:{0}x{1}
m_Arg0:
Expand Down
Loading

0 comments on commit 15f9d92

Please sign in to comment.