【特效】主城/挂机界面自己小人脚底添加光圈4
parent
6bf1306ba5
commit
6f7d6731a4
|
@ -18,7 +18,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &224440747589353134
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -30,8 +30,8 @@ RectTransform:
|
|||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 6716452405183363615}
|
||||
- {fileID: 1996889979900709481}
|
||||
- {fileID: 6716452405183363615}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -119,7 +119,6 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6716452405183363615}
|
||||
- component: {fileID: 3103464990422712866}
|
||||
m_Layer: 5
|
||||
m_Name: liveParent
|
||||
m_TagString: Untagged
|
||||
|
@ -142,34 +141,13 @@ RectTransform:
|
|||
- {fileID: 1055590887172563160}
|
||||
- {fileID: 7815803941768187495}
|
||||
m_Father: {fileID: 224440747589353134}
|
||||
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}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!223 &3103464990422712866
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3103464990422712865}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 2
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
--- !u!1 &3373279371152457450
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -303,7 +281,7 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 224440747589353134}
|
||||
m_RootOrder: 1
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
|
|
|
@ -40,7 +40,7 @@ function PlayerLiveView:New(gameObject,_Type, PlayerLiveViewData,orginLayer,posT
|
|||
instance.playerLiveGo = Util.GetGameObject(instance.leader, "liveParent/playerLive")
|
||||
instance.titleLiveGo = Util.GetGameObject(instance.leader, "liveParent/titleLive")
|
||||
instance.selfTagParent = Util.GetGameObject(instance.leader, "selfTagParent")
|
||||
instance.liveParentCanvas = instance.liveParent:GetComponent("Canvas")
|
||||
-- instance.liveParentCanvas = instance.liveParent:GetComponent("Canvas")
|
||||
instance.nameHeight=0
|
||||
instance.posType=posType
|
||||
--立绘对象
|
||||
|
@ -96,7 +96,7 @@ function PlayerLiveView:OnOpen(scale,pos,dir)
|
|||
self:SetWalkDir(dir)
|
||||
end
|
||||
self.selfTagParent:SetActive(false)
|
||||
self.liveParentCanvas.overrideSorting = false
|
||||
-- self.liveParentCanvas.overrideSorting = false
|
||||
end
|
||||
local sortingorder=0
|
||||
|
||||
|
@ -106,10 +106,10 @@ function PlayerLiveView:OnSortingOrderChange(sortingOrder1)
|
|||
if self.titleLive then
|
||||
self.titleLive:SetLayer(sortingOrder1)
|
||||
end
|
||||
self.liveParentCanvas.overrideSorting = true
|
||||
self.liveParentCanvas.sortingOrder = sortingorder + 1
|
||||
-- self.liveParentCanvas.overrideSorting = true
|
||||
-- self.liveParentCanvas.sortingOrder = sortingorder + 1
|
||||
if self.SelfTagGo then
|
||||
Util.SetParticleSortLayer(self.SelfTagGo, sortingorder)
|
||||
Util.SetParticleSortLayer(self.SelfTagGo, self:GetSelfTagLayer())
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -425,7 +425,7 @@ function PlayerLiveView:SetSelfTag()
|
|||
end
|
||||
self.selfTagParent:SetActive(true)
|
||||
if self.SelfTagGo then
|
||||
Util.SetParticleSortLayer(self.SelfTagGo, sortingorder)
|
||||
Util.SetParticleSortLayer(self.SelfTagGo, self:GetSelfTagLayer())
|
||||
end
|
||||
end
|
||||
function PlayerLiveView:SetEffectScale(effectScale)
|
||||
|
@ -454,4 +454,11 @@ function PlayerLiveView:SetEffectScale(effectScale)
|
|||
end
|
||||
end
|
||||
end
|
||||
function PlayerLiveView:GetSelfTagLayer()
|
||||
local cursortingorder = sortingorder - 1
|
||||
if UIManager.IsOpen(UIName.FightPointPassMainPanel) then--挂机界面特殊处理
|
||||
cursortingorder = 0
|
||||
end
|
||||
return cursortingorder
|
||||
end
|
||||
return PlayerLiveView
|
Loading…
Reference in New Issue