【部分美术效果无法展示】1

dev_chengFeng
zhangqiang 2021-06-09 15:58:04 +08:00
parent f25cd6531c
commit 9a1f0078df
11 changed files with 39225 additions and 9 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2dec9a7448ca6af458cb3b70f9017dc3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e24bfc525812fa543b4bfe3c9188fcaf
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,124 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: dajin_effect_12_zi
m_Shader: {fileID: 4800000, guid: 492429f7579297341bd1ff6e4ff530d7, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DissolveSrc:
m_Texture: {fileID: 2800000, guid: a522db3de7bf79b4687234f73dc2031a, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DissolveTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 26704c9072d5b4c419119268d9ba7bbf, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: -0.15, y: 0}
- _Mask:
m_Texture: {fileID: 2800000, guid: 4ff74dbaba3901745abc67660b7d080a, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 2800000, guid: 98fd140f121f18049925473d22f6122d, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Tex:
m_Texture: {fileID: 2800000, guid: ca7408efa077f0b40a52df576684b02f, type: 3}
m_Scale: {x: 1, y: 0.5}
m_Offset: {x: 0, y: 0}
m_Floats:
- _Amount: 0.28
- _BlendMode: 0
- _BlendOp: -1
- _BumpScale: 1
- _CullMode: 0
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _Dissolve: 0
- _DissolveEdge: 0
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Illuminate: 0
- _InvFade: 0.01
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _PZWrite: 0
- _Parallax: 0.02
- _QueueOffset: 0
- _RenderMode: 0
- _ReplaySpeed: 4
- _Shininess: 0.03
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _StartAmount: 0.1
- _Thickness: 0
- _Tile: 1
- _U: 0.1
- _UVSec: 0
- _V: -0.1
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _ColorAnimate: {r: 0.15, g: 0.15, b: 1, a: 1}
- _Color_wai: {r: 0.21880564, g: 0.23000984, b: 0.31132078, a: 1}
- _DissColor: {r: 1, g: 1, b: 1, a: 1}
- _EdgeColor: {r: 1, g: 0.8, b: 0.3, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _NumTexTiles: {r: 4, g: 4, b: 0, a: 0}
- _Scrolls: {r: 1, g: 1, b: 1, a: 1}
- _SpecColor: {r: 1, g: 1, b: 1, a: 1}
- _Tiling: {r: 2, g: 2, b: 2, a: 1}
- _TintColor: {r: 1, g: 1, b: 1, a: 1}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: caae2234f23e15d4cba9d2449f909fbd
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 608e7ad475adfe34988b2491b75ad3ce
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a032bc80149e3ae4480516f072114a4b
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -294,7 +294,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2546753596356924735}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -608,6 +608,7 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 4805724838964887986}
- {fileID: 2144953859970798787}
- {fileID: 6723476494361738373}
- {fileID: 8928954161895885133}
@ -1210,7 +1211,7 @@ RectTransform:
m_Children:
- {fileID: 1977434122207590558}
m_Father: {fileID: 2546753596356924735}
m_RootOrder: 1
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -1430,7 +1431,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2546753596356924735}
m_RootOrder: 0
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
@ -1517,3 +1518,78 @@ MonoBehaviour:
m_LineSpacing: 1
m_Text: "\u5B59\u609F\u7A7A"
LanguageIndex: 0
--- !u!1001 &5066926826530402882
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2546753596356924735}
m_Modifications:
- target: {fileID: 351292166103626739, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_Name
value: UI_Effect_ShenYiTianJiang
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalPosition.x
value: -6.9
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalPosition.y
value: 481.95
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: a032bc80149e3ae4480516f072114a4b, type: 3}
--- !u!4 &4805724838964887986 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 351292166103626736, guid: a032bc80149e3ae4480516f072114a4b,
type: 3}
m_PrefabInstance: {fileID: 5066926826530402882}
m_PrefabAsset: {fileID: 0}

View File

@ -182,14 +182,18 @@ function SheJiDaDian:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function SheJiDaDian:OnSortingOrderChange()
function SheJiDaDian:OnSortingOrderChange(_sortingOrder)
Util.SetParticleSortLayer(self.effect, _sortingOrder + 1)
Util.SetParticleSortLayer(self.effect2, _sortingOrder + 1)
end
-- 打开,重新打开时回调
function SheJiDaDian:OnShow(_sortingOrder)
self.gameObject:SetActive(true)
Util.AddParticleSortLayer(self.effect, _sortingOrder - sortingOrder)
Util.AddParticleSortLayer(self.effect2, _sortingOrder - sortingOrder)
-- Util.AddParticleSortLayer(self.effect, _sortingOrder - sortingOrder)
-- Util.AddParticleSortLayer(self.effect2, _sortingOrder - sortingOrder)
Util.SetParticleSortLayer(self.effect, _sortingOrder + 1)
Util.SetParticleSortLayer(self.effect2, _sortingOrder + 1)
sortingOrder = _sortingOrder
self.actId = self.actConfig.ActId
self.actType = self.actConfig.ActiveType > 0 and self.actConfig.ActiveType or self.actConfig.FunType

View File

@ -22,6 +22,7 @@ function ShengYiTianJiang:InitComponent()
self.buytimes = Util.GetGameObject(self.gameObject, "layout/buytimes"):GetComponent("Text")
self.liveRoot = Util.GetGameObject(self.gameObject, "bg/liveRoot")
self.skinName = Util.GetGameObject(self.gameObject, "title/name"):GetComponent("Text")
self.effect = Util.GetGameObject(self.gameObject, "bg/UI_Effect_ShenYiTianJiang")
end
--绑定事件(用于子类重写)
@ -66,14 +67,15 @@ function ShengYiTianJiang:OnOpen(_activityConfig,_index,parent)
self.parent = parent
end
function ShengYiTianJiang:OnSortingOrderChange()
function ShengYiTianJiang:OnSortingOrderChange(sortingOrder)
Util.SetParticleSortLayer(self.effect, sortingOrder + 1)
end
-- 打开,重新打开时回调
function ShengYiTianJiang:OnShow(_sortingOrder)
self.gameObject:SetActive(true)
sortingOrder = _sortingOrder
Util.SetParticleSortLayer(self.effect, sortingOrder + 1)
self.actId = self.actConfig.ActId
self.actType = self.actConfig.ActiveType > 0 and self.actConfig.ActiveType or self.actConfig.FunType
if self.actConfig.IfBack == 1 then

View File

@ -57,7 +57,8 @@ function TimeLimitSkin:RemoveListener()
end
function TimeLimitSkin:OnSortingOrderChange()
Util.AddParticleSortLayer( this.effect, self.sortingOrder - _sortingOrder)
-- Util.AddParticleSortLayer( this.effect, self.sortingOrder - _sortingOrder)
Util.SetParticleSortLayer(this.effect, self.sortingOrder + 1)
_sortingOrder = self.sortingOrder
end
@ -68,6 +69,7 @@ end
-- 打开,重新打开时回调
function TimeLimitSkin:OnShow()
Util.SetParticleSortLayer(this.effect, self.sortingOrder + 1)
TimeLimitSkin:RefreshData()
end