2
0
Fork 0

相机角度设置 sprite对象 通用旋转

master
cd 2 years ago
parent afa70e2733
commit 66b20533d7

@ -475,7 +475,7 @@ Transform:
- {fileID: 1679791624} - {fileID: 1679791624}
m_Father: {fileID: 2053699350} m_Father: {fileID: 2053699350}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 30, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 35, y: 0, z: 0}
--- !u!114 &530533505 --- !u!114 &530533505
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1021,14 +1021,14 @@ Transform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1481844499} m_GameObject: {fileID: 1481844499}
m_LocalRotation: {x: 0.2588191, y: 0, z: 0, w: 0.9659258} m_LocalRotation: {x: 0.30070576, y: 0, z: 0, w: 0.953717}
m_LocalPosition: {x: 0, y: 6.0000014, z: -9.892304} m_LocalPosition: {x: 0, y: 6.0000014, z: -9.892304}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 441416963} - {fileID: 441416963}
m_Father: {fileID: 2053699350} m_Father: {fileID: 2053699350}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 30, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 35, y: 0, z: 0}
--- !u!114 &1481844501 --- !u!114 &1481844501
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1456,6 +1456,11 @@ PrefabInstance:
m_Modification: m_Modification:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: m_Modifications:
- target: {fileID: 89448209117170303, guid: 2ee37d7e6a339064ab6466f552ca0edb,
type: 3}
propertyPath: m_Size.x
value: 2
objectReference: {fileID: 0}
- target: {fileID: 89448209117170303, guid: 2ee37d7e6a339064ab6466f552ca0edb, - target: {fileID: 89448209117170303, guid: 2ee37d7e6a339064ab6466f552ca0edb,
type: 3} type: 3}
propertyPath: m_Size.y propertyPath: m_Size.y

@ -88,6 +88,7 @@ public partial class GameEntity
view.Material = view.SpriteRenderer.material; view.Material = view.SpriteRenderer.material;
view.Collider = go.GetComponent<Collider>(); view.Collider = go.GetComponent<Collider>();
view.LocalPositionOrder = Vector3.forward * GameRandom.Random(0, 0.01f); view.LocalPositionOrder = Vector3.forward * GameRandom.Random(0, 0.01f);
view.TransformViewRot.localRotation = GameConst.CommonRot;
} }
public void AddMove() public void AddMove()

@ -16,6 +16,8 @@ namespace Game
public static Vector3 DownLeft = new Vector3(-1, 0, -1).normalized; public static Vector3 DownLeft = new Vector3(-1, 0, -1).normalized;
public static Vector3 DownRight = new Vector3(1, 0, -1).normalized; public static Vector3 DownRight = new Vector3(1, 0, -1).normalized;
public static Quaternion CommonRot = Quaternion.AngleAxis(10, Vector3.right);
public static readonly Dictionary<EMoveCommand, Vector3> MoveCommand2Dir = public static readonly Dictionary<EMoveCommand, Vector3> MoveCommand2Dir =
new Dictionary<EMoveCommand, Vector3>() new Dictionary<EMoveCommand, Vector3>()
{ {

@ -274,16 +274,16 @@ SpriteRenderer:
m_SortingLayerID: -248419617 m_SortingLayerID: -248419617
m_SortingLayer: 3 m_SortingLayer: 3
m_SortingOrder: 0 m_SortingOrder: 0
m_Sprite: {fileID: 9044786021765537137, guid: 915fdee616812fc41a3f1e169bef3f0f, m_Sprite: {fileID: 1762012598533887728, guid: a4bf04d287237394b8f4312ef1b32cdf,
type: 3} type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1} m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0 m_FlipX: 0
m_FlipY: 0 m_FlipY: 0
m_DrawMode: 0 m_DrawMode: 0
m_Size: {x: 2, y: 1} m_Size: {x: 0.89, y: 0.98}
m_AdaptiveModeThreshold: 0.5 m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 0 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
m_SpriteSortPoint: 0 m_SpriteSortPoint: 0
--- !u!95 &4414991602654513556 --- !u!95 &4414991602654513556

Loading…
Cancel
Save