三国卡牌客户端基础资源仓库
0312 UIBase 遮罩调整为在开发制作的时候添加,点击关闭和遮罩显隐是其中的属性
8个文件已删除
1个文件已修改
8个文件已添加
511 ■■■■ 已修改文件
Assets/Editor/UIComponent/UIBaseEditor.cs 69 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/UIComponent/UIBaseEditor.cs.meta 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_Advanced.unity 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_Advanced.unity.meta 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_AdvancedSettings.lighting 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_AdvancedSettings.lighting.meta 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_Basics.unity 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_Basics.unity.meta 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_BasicsSettings.lighting 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_BasicsSettings.lighting.meta 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenPath.unity 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenPath.unity.meta 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenPathSettings.lighting 66 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenPathSettings.lighting.meta 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Resources/Prefabs/ClickEmptyCloseMask.prefab 122 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Resources/Prefabs/ClickEmptyCloseMask.prefab.meta 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Resources/Prefabs/ScreenMask.prefab 68 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/UIComponent/UIBaseEditor.cs
New file
@@ -0,0 +1,69 @@
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
[CustomEditor(typeof(UIBase),true),CanEditMultipleObjects]
public class UIBaseEditor: Editor
{
    public override void OnInspectorGUI() {
        UIBase ui = target as UIBase;
        //增加个按钮 点击生成一个新的遮罩
        if (GUILayout.Button("生成遮罩"))
        {
            CreateScreen(ui);
        }
        //增加个按钮 点击删除遮罩
        if (GUILayout.Button("删除遮罩"))
        {
            if (ui.screenMask != null)
            {
                ui.openMask = false;
                ui.clickEmptySpaceClose = false;
                GameObject.DestroyImmediate(ui.screenMask);
                ui.screenMask = null;
            }
        }
        base.OnInspectorGUI();
        EditorGUILayout.Space();
        //开发过程中其他界面图片raycast默认为false,经常会点到下一个界面
        if (ui.openMask)
        {
            CreateScreen(ui);
            ui.screenMask.GetComponent<Image>().color = new Color32(0, 0, 0, 226);
        }
        else
        {
            if (ui.screenMask)
                ui.screenMask.GetComponent<Image>().color = new Color32(0, 0, 0, 0);
        }
        if (ui.clickEmptySpaceClose)
        {
            CreateScreen(ui);
            ui.screenMask.GetComponent<Button>().enabled = true;
        }
        else
        {
            if (ui.screenMask)
                ui.screenMask.GetComponent<Button>().enabled = false;
        }
    }
    void CreateScreen(UIBase ui)
    {
        if (ui.screenMask == null)
            ui.screenMask = GameObject.Instantiate(Resources.Load<GameObject>("Prefabs/ScreenMask"), ui.transform);
        ui.screenMask.transform.localPosition = Vector3.zero;
        ui.screenMask.transform.localScale = Vector3.one;
        ui.screenMask.transform.localRotation = Quaternion.identity;
        ui.screenMask.transform.SetAsFirstSibling();
    }
}
Assets/Editor/UIComponent/UIBaseEditor.cs.meta
New file
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cb4fa097e811550408a074d2758fc806
MonoImporter:
  externalObjects: {}
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_Advanced.unity
Binary files differ
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_Advanced.unity.meta
File was deleted
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_AdvancedSettings.lighting
New file
@@ -0,0 +1,66 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!850595691 &4890085278179872738
LightingSettings:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_Name: DOTweenAnimation_AdvancedSettings
  serializedVersion: 6
  m_GIWorkflowMode: 1
  m_EnableBakedLightmaps: 1
  m_EnableRealtimeLightmaps: 0
  m_RealtimeEnvironmentLighting: 1
  m_BounceScale: 1
  m_AlbedoBoost: 1
  m_IndirectOutputScale: 1
  m_UsingShadowmask: 0
  m_BakeBackend: 0
  m_LightmapMaxSize: 1024
  m_BakeResolution: 50
  m_Padding: 2
  m_LightmapCompression: 0
  m_AO: 1
  m_AOMaxDistance: 1
  m_CompAOExponent: 1
  m_CompAOExponentDirect: 0
  m_ExtractAO: 0
  m_MixedBakeMode: 1
  m_LightmapsBakeMode: 1
  m_FilterMode: 1
  m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
  m_ExportTrainingData: 0
  m_TrainingDataDestination: TrainingData
  m_RealtimeResolution: 1
  m_ForceWhiteAlbedo: 0
  m_ForceUpdates: 0
  m_FinalGather: 0
  m_FinalGatherRayCount: 256
  m_FinalGatherFiltering: 1
  m_PVRCulling: 1
  m_PVRSampling: 1
  m_PVRDirectSampleCount: 32
  m_PVRSampleCount: 512
  m_PVREnvironmentSampleCount: 512
  m_PVREnvironmentReferencePointCount: 2048
  m_LightProbeSampleCountMultiplier: 4
  m_PVRBounces: 2
  m_PVRMinBounces: 2
  m_PVREnvironmentImportanceSampling: 0
  m_PVRFilteringMode: 0
  m_PVRDenoiserTypeDirect: 0
  m_PVRDenoiserTypeIndirect: 0
  m_PVRDenoiserTypeAO: 0
  m_PVRFilterTypeDirect: 0
  m_PVRFilterTypeIndirect: 0
  m_PVRFilterTypeAO: 0
  m_PVRFilteringGaussRadiusDirect: 1
  m_PVRFilteringGaussRadiusIndirect: 5
  m_PVRFilteringGaussRadiusAO: 2
  m_PVRFilteringAtrousPositionSigmaDirect: 0.5
  m_PVRFilteringAtrousPositionSigmaIndirect: 2
  m_PVRFilteringAtrousPositionSigmaAO: 1
  m_PVRTiledBaking: 0
  m_NumRaysToShootPerTexel: -1
  m_RespectSceneVisibilityWhenBakingGI: 0
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_AdvancedSettings.lighting.meta
New file
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 250fc02ea9957f944afb33b62ba63a81
NativeFormatImporter:
  externalObjects: {}
  mainObjectFileID: 4890085278179872738
  userData:
  assetBundleName:
  assetBundleVariant:
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_Basics.unity
Binary files differ
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_Basics.unity.meta
File was deleted
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_BasicsSettings.lighting
New file
@@ -0,0 +1,66 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!850595691 &4890085278179872738
LightingSettings:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_Name: DOTweenAnimation_BasicsSettings
  serializedVersion: 6
  m_GIWorkflowMode: 1
  m_EnableBakedLightmaps: 1
  m_EnableRealtimeLightmaps: 0
  m_RealtimeEnvironmentLighting: 1
  m_BounceScale: 1
  m_AlbedoBoost: 1
  m_IndirectOutputScale: 1
  m_UsingShadowmask: 0
  m_BakeBackend: 0
  m_LightmapMaxSize: 1024
  m_BakeResolution: 50
  m_Padding: 2
  m_LightmapCompression: 0
  m_AO: 1
  m_AOMaxDistance: 1
  m_CompAOExponent: 1
  m_CompAOExponentDirect: 0
  m_ExtractAO: 0
  m_MixedBakeMode: 1
  m_LightmapsBakeMode: 1
  m_FilterMode: 1
  m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
  m_ExportTrainingData: 0
  m_TrainingDataDestination: TrainingData
  m_RealtimeResolution: 1
  m_ForceWhiteAlbedo: 0
  m_ForceUpdates: 0
  m_FinalGather: 0
  m_FinalGatherRayCount: 256
  m_FinalGatherFiltering: 1
  m_PVRCulling: 1
  m_PVRSampling: 1
  m_PVRDirectSampleCount: 32
  m_PVRSampleCount: 512
  m_PVREnvironmentSampleCount: 512
  m_PVREnvironmentReferencePointCount: 2048
  m_LightProbeSampleCountMultiplier: 4
  m_PVRBounces: 2
  m_PVRMinBounces: 2
  m_PVREnvironmentImportanceSampling: 0
  m_PVRFilteringMode: 0
  m_PVRDenoiserTypeDirect: 0
  m_PVRDenoiserTypeIndirect: 0
  m_PVRDenoiserTypeAO: 0
  m_PVRFilterTypeDirect: 0
  m_PVRFilterTypeIndirect: 0
  m_PVRFilterTypeAO: 0
  m_PVRFilteringGaussRadiusDirect: 1
  m_PVRFilteringGaussRadiusIndirect: 5
  m_PVRFilteringGaussRadiusAO: 2
  m_PVRFilteringAtrousPositionSigmaDirect: 0.5
  m_PVRFilteringAtrousPositionSigmaIndirect: 2
  m_PVRFilteringAtrousPositionSigmaAO: 1
  m_PVRTiledBaking: 0
  m_NumRaysToShootPerTexel: -1
  m_RespectSceneVisibilityWhenBakingGI: 0
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenAnimation_BasicsSettings.lighting.meta
New file
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1f85185d645d476478fa6a5b006e410c
NativeFormatImporter:
  externalObjects: {}
  mainObjectFileID: 4890085278179872738
  userData:
  assetBundleName:
  assetBundleVariant:
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenPath.unity
Binary files differ
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenPath.unity.meta
File was deleted
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenPathSettings.lighting
New file
@@ -0,0 +1,66 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!850595691 &4890085278179872738
LightingSettings:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_Name: DOTweenPathSettings
  serializedVersion: 6
  m_GIWorkflowMode: 1
  m_EnableBakedLightmaps: 1
  m_EnableRealtimeLightmaps: 0
  m_RealtimeEnvironmentLighting: 1
  m_BounceScale: 1
  m_AlbedoBoost: 1
  m_IndirectOutputScale: 1
  m_UsingShadowmask: 0
  m_BakeBackend: 0
  m_LightmapMaxSize: 1024
  m_BakeResolution: 50
  m_Padding: 2
  m_LightmapCompression: 0
  m_AO: 1
  m_AOMaxDistance: 1
  m_CompAOExponent: 1
  m_CompAOExponentDirect: 0
  m_ExtractAO: 0
  m_MixedBakeMode: 1
  m_LightmapsBakeMode: 1
  m_FilterMode: 1
  m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
  m_ExportTrainingData: 0
  m_TrainingDataDestination: TrainingData
  m_RealtimeResolution: 1
  m_ForceWhiteAlbedo: 0
  m_ForceUpdates: 0
  m_FinalGather: 0
  m_FinalGatherRayCount: 256
  m_FinalGatherFiltering: 1
  m_PVRCulling: 1
  m_PVRSampling: 1
  m_PVRDirectSampleCount: 32
  m_PVRSampleCount: 512
  m_PVREnvironmentSampleCount: 512
  m_PVREnvironmentReferencePointCount: 2048
  m_LightProbeSampleCountMultiplier: 4
  m_PVRBounces: 2
  m_PVRMinBounces: 2
  m_PVREnvironmentImportanceSampling: 0
  m_PVRFilteringMode: 0
  m_PVRDenoiserTypeDirect: 0
  m_PVRDenoiserTypeIndirect: 0
  m_PVRDenoiserTypeAO: 0
  m_PVRFilterTypeDirect: 0
  m_PVRFilterTypeIndirect: 0
  m_PVRFilterTypeAO: 0
  m_PVRFilteringGaussRadiusDirect: 1
  m_PVRFilteringGaussRadiusIndirect: 5
  m_PVRFilteringGaussRadiusAO: 2
  m_PVRFilteringAtrousPositionSigmaDirect: 0.5
  m_PVRFilteringAtrousPositionSigmaIndirect: 2
  m_PVRFilteringAtrousPositionSigmaAO: 1
  m_PVRTiledBaking: 0
  m_NumRaysToShootPerTexel: -1
  m_RespectSceneVisibilityWhenBakingGI: 0
Assets/Plugins/Demigiant/DOTweenPro Examples/DOTweenPathSettings.lighting.meta
New file
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3943d0047b25f3a46a3b5c3d8bdccecc
NativeFormatImporter:
  externalObjects: {}
  mainObjectFileID: 4890085278179872738
  userData:
  assetBundleName:
  assetBundleVariant:
Assets/Resources/Prefabs/ClickEmptyCloseMask.prefab
File was deleted
Assets/Resources/Prefabs/ClickEmptyCloseMask.prefab.meta
File was deleted
Assets/Resources/Prefabs/ScreenMask.prefab
@@ -10,7 +10,8 @@
  m_Component:
  - component: {fileID: 5060824339156781239}
  - component: {fileID: 5139521211198942054}
  - component: {fileID: 7843618826810733026}
  - component: {fileID: 4462137138285835047}
  - component: {fileID: 5729163664874005223}
  m_Layer: 5
  m_Name: ScreenMask
  m_TagString: Untagged
@@ -45,7 +46,7 @@
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 6573027761555286950}
  m_CullTransparentMesh: 1
--- !u!114 &7843618826810733026
--- !u!114 &4462137138285835047
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
@@ -54,7 +55,7 @@
  m_GameObject: {fileID: 6573027761555286950}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3}
  m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
  m_Name: 
  m_EditorClassIdentifier: 
  m_Material: {fileID: 0}
@@ -65,10 +66,57 @@
  m_OnCullStateChanged:
    m_PersistentCalls:
      m_Calls: []
  m_Texture: {fileID: 0}
  m_UVRect:
    serializedVersion: 2
    x: 0
    y: 0
    width: 1
    height: 1
  m_Sprite: {fileID: 0}
  m_Type: 0
  m_PreserveAspect: 0
  m_FillCenter: 1
  m_FillMethod: 4
  m_FillAmount: 1
  m_FillClockwise: 1
  m_FillOrigin: 0
  m_UseSpriteMesh: 0
  m_PixelsPerUnitMultiplier: 1
--- !u!114 &5729163664874005223
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 6573027761555286950}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
  m_Name:
  m_EditorClassIdentifier:
  m_Navigation:
    m_Mode: 3
    m_WrapAround: 0
    m_SelectOnUp: {fileID: 0}
    m_SelectOnDown: {fileID: 0}
    m_SelectOnLeft: {fileID: 0}
    m_SelectOnRight: {fileID: 0}
  m_Transition: 1
  m_Colors:
    m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
    m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
    m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
    m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
    m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
    m_ColorMultiplier: 1
    m_FadeDuration: 0.1
  m_SpriteState:
    m_HighlightedSprite: {fileID: 0}
    m_PressedSprite: {fileID: 0}
    m_SelectedSprite: {fileID: 0}
    m_DisabledSprite: {fileID: 0}
  m_AnimationTriggers:
    m_NormalTrigger: Normal
    m_HighlightedTrigger: Highlighted
    m_PressedTrigger: Pressed
    m_SelectedTrigger: Selected
    m_DisabledTrigger: Disabled
  m_Interactable: 1
  m_TargetGraphic: {fileID: 4462137138285835047}
  m_OnClick:
    m_PersistentCalls:
      m_Calls: []