Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit b1a74fb

Browse files
committed
fix bugs && add compare info
1 parent 8d43a84 commit b1a74fb

File tree

446 files changed

+67553
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

446 files changed

+67553
-37
lines changed

Assets/CalFps.cs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
5+
public class CalFps : MonoBehaviour {
6+
7+
private float starttime;
8+
9+
private float endtime;
10+
11+
private int framecnt;
12+
13+
// Use this for initialization
14+
void Start () {
15+
Reset();
16+
}
17+
18+
public void Reset()
19+
{
20+
starttime = Time.timeSinceLevelLoad;
21+
framecnt = 0;
22+
endtime = -1;
23+
}
24+
25+
// Update is called once per frame
26+
void Update () {
27+
if(Time.timeSinceLevelLoad - starttime <5f)
28+
{
29+
framecnt++;
30+
}
31+
else
32+
{
33+
if (endtime < 0)
34+
{
35+
endtime = Time.timeSinceLevelLoad;
36+
float fps = framecnt / (endtime - starttime);
37+
Debug.LogError(fps);
38+
}
39+
}
40+
}
41+
}

Assets/CalFps.cs.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/TextInlineSprite.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/TextInlineSprite/.DS_Store

6 KB
Binary file not shown.

Assets/TextInlineSprite/Editor/SpriteAssetEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private void ShowBatchTools()
150150
for (int j = 0; j < group.spritegroups.Count; ++j)
151151
{
152152
SpriteInfo info = group.spritegroups[j];
153-
float value = Mathf.Max(info.sprite.rect.x, info.sprite.rect.y);
153+
float value = Mathf.Max(info.sprite.rect.width, info.sprite.rect.height);
154154
group.size = Mathf.Max(value, group.size);
155155
group.width = 1;
156156
}

Assets/TextInlineSprite/Examples/Prefabs/ChatItem.prefab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ MonoBehaviour:
9898
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
9999
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
100100
m_FontData:
101-
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
101+
m_Font: {fileID: 12800000, guid: 323ac1ea6ff04144f9f5b613bfbc5597, type: 3}
102102
m_FontSize: 14
103103
m_FontStyle: 0
104104
m_BestFit: 0
@@ -110,7 +110,7 @@ MonoBehaviour:
110110
m_HorizontalOverflow: 0
111111
m_VerticalOverflow: 1
112112
m_LineSpacing: 1
113-
m_Text: New Text[#emoji_0]000000000000000000000000000000000
113+
m_Text:
114114
OnHrefClick:
115115
m_PersistentCalls:
116116
m_Calls: []

Assets/TextInlineSprite/Examples/Scene/Chat.unity

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RenderSettings:
3838
m_ReflectionIntensity: 1
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 0}
41-
m_IndirectSpecularColor: {r: 0.44657868, g: 0.49641263, b: 0.57481706, a: 1}
41+
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
4242
--- !u!157 &3
4343
LightmapSettings:
4444
m_ObjectHideFlags: 0
@@ -77,17 +77,15 @@ LightmapSettings:
7777
m_PVRDirectSampleCount: 32
7878
m_PVRSampleCount: 500
7979
m_PVRBounces: 2
80-
m_PVRFilterTypeDirect: 0
81-
m_PVRFilterTypeIndirect: 0
82-
m_PVRFilterTypeAO: 0
80+
m_PVRFiltering: 0
8381
m_PVRFilteringMode: 0
8482
m_PVRCulling: 1
8583
m_PVRFilteringGaussRadiusDirect: 1
8684
m_PVRFilteringGaussRadiusIndirect: 5
8785
m_PVRFilteringGaussRadiusAO: 2
88-
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
89-
m_PVRFilteringAtrousPositionSigmaIndirect: 2
90-
m_PVRFilteringAtrousPositionSigmaAO: 1
86+
m_PVRFilteringAtrousColorSigma: 1
87+
m_PVRFilteringAtrousNormalSigma: 1
88+
m_PVRFilteringAtrousPositionSigma: 1
9189
m_LightingDataAsset: {fileID: 0}
9290
m_ShadowMaskMode: 2
9391
--- !u!196 &4
@@ -346,7 +344,9 @@ MonoBehaviour:
346344
m_Script: {fileID: 11500000, guid: 0ae7019e071d5fe4e9d442887a3ac0de, type: 3}
347345
m_Name:
348346
m_EditorClassIdentifier:
349-
PreparedAtlas: []
347+
PreparedAtlas:
348+
- emoji
349+
- emoji_lxh
350350
_openDebug: 0
351351
_animationspeed: 5
352352
_renderType: 0
@@ -490,7 +490,7 @@ MonoBehaviour:
490490
m_TargetGraphic: {fileID: 201184325}
491491
m_HandleRect: {fileID: 201184324}
492492
m_Direction: 2
493-
m_Value: 0
493+
m_Value: 1
494494
m_Size: 1
495495
m_NumberOfSteps: 0
496496
m_OnValueChanged:
@@ -678,7 +678,7 @@ MonoBehaviour:
678678
m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
679679
m_CustomCaretColor: 0
680680
m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412}
681-
m_Text: Send Message,[#emoji_8]&&[1#run]
681+
m_Text: Send Message,12313[0#emoji_0]
682682
m_CaretBlinkRate: 0.85
683683
m_CaretWidth: 1
684684
m_ReadOnly: 0
@@ -1094,7 +1094,7 @@ MonoBehaviour:
10941094
m_HorizontalOverflow: 1
10951095
m_VerticalOverflow: 0
10961096
m_LineSpacing: 1
1097-
m_Text: Send Message,[#emoji_8]&&[1#run]
1097+
m_Text: Send Message,12313[0#emoji_0]
10981098
--- !u!1 &1148848366
10991099
GameObject:
11001100
m_ObjectHideFlags: 0
@@ -1104,6 +1104,7 @@ GameObject:
11041104
m_Component:
11051105
- component: {fileID: 1148848368}
11061106
- component: {fileID: 1148848367}
1107+
- component: {fileID: 1148848369}
11071108
m_Layer: 0
11081109
m_Name: ScriptObject
11091110
m_TagString: Untagged
@@ -1127,6 +1128,8 @@ MonoBehaviour:
11271128
_ChatParent: {fileID: 593063447}
11281129
_ViewContent: {fileID: 593063447}
11291130
_InputText: {fileID: 702706682}
1131+
cal: {fileID: 1148848369}
1132+
testcnt: 1
11301133
--- !u!4 &1148848368
11311134
Transform:
11321135
m_ObjectHideFlags: 0
@@ -1140,6 +1143,17 @@ Transform:
11401143
m_Father: {fileID: 0}
11411144
m_RootOrder: 4
11421145
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1146+
--- !u!114 &1148848369
1147+
MonoBehaviour:
1148+
m_ObjectHideFlags: 0
1149+
m_PrefabParentObject: {fileID: 0}
1150+
m_PrefabInternal: {fileID: 0}
1151+
m_GameObject: {fileID: 1148848366}
1152+
m_Enabled: 1
1153+
m_EditorHideFlags: 0
1154+
m_Script: {fileID: 11500000, guid: bb6b32188d4e72d42b6da48480b300b5, type: 3}
1155+
m_Name:
1156+
m_EditorClassIdentifier:
11431157
--- !u!1 &1184607120
11441158
GameObject:
11451159
m_ObjectHideFlags: 0

Assets/TextInlineSprite/Examples/Scene/meshpro.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)