-
-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: f22a23b9d98e440478697f4adf30e61c, type: 3} | ||
m_Name: UIParticle | ||
m_EditorClassIdentifier: | ||
m_EnableLinearToGamma: 1 | ||
m_HideGeneratedObjects: 1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma warning disable CS0414 | ||
using Coffee.UIParticleInternal; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace Coffee.UIExtensions | ||
{ | ||
public class UIParticleProjectSettings : PreloadedProjectSettings<UIParticleProjectSettings> | ||
{ | ||
[Header("Setting")] | ||
[SerializeField] | ||
internal bool m_EnableLinearToGamma = true; | ||
|
||
public static bool enableLinearToGamma | ||
{ | ||
get => instance.m_EnableLinearToGamma; | ||
set => instance.m_EnableLinearToGamma = value; | ||
} | ||
|
||
|
||
[Header("Editor")] | ||
[Tooltip("Hide the automatically generated objects.\n" + | ||
" - UIParticleRenderer\n" + | ||
" - UIParticle BakingCamera")] | ||
[SerializeField] | ||
private bool m_HideGeneratedObjects = true; | ||
|
||
public static HideFlags globalHideFlags => instance.m_HideGeneratedObjects | ||
? HideFlags.DontSave | HideFlags.NotEditable | HideFlags.HideInHierarchy | HideFlags.HideInInspector | ||
: HideFlags.DontSave | HideFlags.NotEditable; | ||
|
||
#if UNITY_EDITOR | ||
[SettingsProvider] | ||
private static SettingsProvider CreateSettingsProvider() | ||
{ | ||
return new PreloadedProjectSettingsProvider("Project/UI/UI Particle"); | ||
} | ||
#endif | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters