com.typhoon.unitysdk 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/AddressableSupport.cs +4 -2
- package/Editor/EditorIcons.cs +4 -0
- package/Editor/PublishSettingGUIDrawer.cs +3 -4
- package/Editor/PublishWindow.cs +2 -2
- package/Editor/Skin.guiskin +1 -1
- package/Editor/StylesExtension.cs +27 -27
- package/Editor/Texture/icon_drop_arrow.png +0 -0
- package/Editor/Texture/icon_drop_arrow.png.meta +144 -0
- package/Sources~/Package//345/270/270/347/224/250/346/211/223/345/214/205/351/205/215/347/275/256.unitypackage +0 -0
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@ namespace TyphoonUnitySDK
|
|
|
25
25
|
var settings = AddressableAssetSettingsDefaultObject.Settings;
|
|
26
26
|
if (settings == null)
|
|
27
27
|
{
|
|
28
|
-
Debug.LogError("找不到Settings");
|
|
28
|
+
Debug.LogError("找不到Settings,请先初始化Addressables");
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -227,7 +227,9 @@ namespace TyphoonUnitySDK
|
|
|
227
227
|
{
|
|
228
228
|
#if TYPHOON_ADDRESSABLE
|
|
229
229
|
var settings = AddressableAssetSettingsDefaultObject.Settings;
|
|
230
|
-
|
|
230
|
+
if(settings!=null){
|
|
231
|
+
return settings.profileSettings.GetVariableNames();
|
|
232
|
+
}
|
|
231
233
|
#endif
|
|
232
234
|
var result = new List<string>();
|
|
233
235
|
return result;
|
package/Editor/EditorIcons.cs
CHANGED
|
@@ -30,6 +30,10 @@ namespace TyphoonUnitySDK
|
|
|
30
30
|
public static Texture icon_download =>
|
|
31
31
|
__icon_download
|
|
32
32
|
?? AssetDatabase.LoadAssetAtPath<Texture>($"{FolderPath}/icon_download.png");
|
|
33
|
+
private static Texture __icon_drop_arrow = null;
|
|
34
|
+
public static Texture icon_drop_arrow =>
|
|
35
|
+
__icon_drop_arrow
|
|
36
|
+
?? AssetDatabase.LoadAssetAtPath<Texture>($"{FolderPath}/icon_drop_arrow.png");
|
|
33
37
|
private static Texture __icon_error = null;
|
|
34
38
|
public static Texture icon_error =>
|
|
35
39
|
__icon_error ?? AssetDatabase.LoadAssetAtPath<Texture>($"{FolderPath}/icon_error.png");
|
|
@@ -141,7 +141,6 @@ namespace TyphoonUnitySDK
|
|
|
141
141
|
/*重绘EnableSignature*/
|
|
142
142
|
private static bool DrawProperty_EnableSignature(PublishSetting setting)
|
|
143
143
|
{
|
|
144
|
-
|
|
145
144
|
return setting.BuildTarget != BuildTarget.Android;
|
|
146
145
|
}
|
|
147
146
|
|
|
@@ -259,7 +258,7 @@ namespace TyphoonUnitySDK
|
|
|
259
258
|
GUILayout.Label("关联profile", GUILayout.Width(142));
|
|
260
259
|
var txt = setting.AAUseProfile;
|
|
261
260
|
txt = string.IsNullOrEmpty(txt) ? "请选择" : txt;
|
|
262
|
-
if (GUILayout.Button(txt,
|
|
261
|
+
if (GUILayout.Button(txt,"Popup"))
|
|
263
262
|
{
|
|
264
263
|
AddressableSupport.PopUpProfileSelectorMenu(setting);
|
|
265
264
|
}
|
|
@@ -300,7 +299,7 @@ namespace TyphoonUnitySDK
|
|
|
300
299
|
}
|
|
301
300
|
|
|
302
301
|
var variables = AddressableSupport.GetVariables();
|
|
303
|
-
if (GUILayout.Button("覆写 Veriable",
|
|
302
|
+
if (GUILayout.Button("覆写 Veriable","Popup"))
|
|
304
303
|
{
|
|
305
304
|
var used = new HashSet<string>();
|
|
306
305
|
foreach (var modify in modifies)
|
|
@@ -337,7 +336,7 @@ namespace TyphoonUnitySDK
|
|
|
337
336
|
var isValid = !string.IsNullOrEmpty(modify.VariableName) && variables.Contains(modify.VariableName);
|
|
338
337
|
var varName = isValid ? modify.VariableName : $"{modify.VariableName}(missing)";
|
|
339
338
|
GUILayout.BeginHorizontal();
|
|
340
|
-
if (GUILayout.Button(varName,
|
|
339
|
+
if (GUILayout.Button(varName, "Popup", GUILayout.Width(200)))
|
|
341
340
|
{
|
|
342
341
|
var menu = new GenericMenu();
|
|
343
342
|
menu.AddItem(new GUIContent("删除"), false, () => { _cacheDelete = modify; });
|
package/Editor/PublishWindow.cs
CHANGED
|
@@ -159,7 +159,7 @@ namespace TyphoonUnitySDK
|
|
|
159
159
|
|
|
160
160
|
/*绘制菜单栏*/
|
|
161
161
|
var rectPos = rectLeftMenu;
|
|
162
|
-
rectPos.y = rectSearch.yMax;
|
|
162
|
+
rectPos.y = rectSearch.yMax+4;
|
|
163
163
|
rectPos.height = rectLeftMenu.yMax - rectPos.y;
|
|
164
164
|
GUILayout.BeginArea(rectPos);
|
|
165
165
|
rectPos.x = 0;
|
|
@@ -206,7 +206,7 @@ namespace TyphoonUnitySDK
|
|
|
206
206
|
var lockRect = rectItem;
|
|
207
207
|
lockRect.width = 60;
|
|
208
208
|
lockRect.x = rectItem.xMax - lockRect.width;
|
|
209
|
-
GUI.Label(lockRect,"未开放");
|
|
209
|
+
GUI.Label(lockRect,"未开放",Styles.rlabel_italic);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
package/Editor/Skin.guiskin
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
|
|
5
|
-
namespace TyphoonUnitySDK
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
1
|
+
// using System.Collections;
|
|
2
|
+
// using System.Collections.Generic;
|
|
3
|
+
// using UnityEngine;
|
|
4
|
+
//
|
|
5
|
+
// namespace TyphoonUnitySDK
|
|
6
|
+
// {
|
|
7
|
+
// public partial class Styles
|
|
8
|
+
// {
|
|
9
|
+
// private static GUIStyle _dropDownButtonLeft = null;
|
|
10
|
+
//
|
|
11
|
+
// public static GUIStyle DropDownButtonLeft
|
|
12
|
+
// {
|
|
13
|
+
// get
|
|
14
|
+
// {
|
|
15
|
+
// if (_dropDownButtonLeft == null)
|
|
16
|
+
// {
|
|
17
|
+
// _dropDownButtonLeft = new GUIStyle(Styles.DropDownButton);
|
|
18
|
+
// _dropDownButtonLeft.alignment = TextAnchor.MiddleLeft;
|
|
19
|
+
// }
|
|
20
|
+
//
|
|
21
|
+
// return _dropDownButtonLeft;
|
|
22
|
+
// }
|
|
23
|
+
// }
|
|
24
|
+
//
|
|
25
|
+
//
|
|
26
|
+
// }
|
|
27
|
+
// }
|
|
Binary file
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: a6791288aed2e9743af84f77962d5a0e
|
|
3
|
+
TextureImporter:
|
|
4
|
+
internalIDToNameTable: []
|
|
5
|
+
externalObjects: {}
|
|
6
|
+
serializedVersion: 11
|
|
7
|
+
mipmaps:
|
|
8
|
+
mipMapMode: 0
|
|
9
|
+
enableMipMap: 1
|
|
10
|
+
sRGBTexture: 1
|
|
11
|
+
linearTexture: 0
|
|
12
|
+
fadeOut: 0
|
|
13
|
+
borderMipMap: 0
|
|
14
|
+
mipMapsPreserveCoverage: 0
|
|
15
|
+
alphaTestReferenceValue: 0.5
|
|
16
|
+
mipMapFadeDistanceStart: 1
|
|
17
|
+
mipMapFadeDistanceEnd: 3
|
|
18
|
+
bumpmap:
|
|
19
|
+
convertToNormalMap: 0
|
|
20
|
+
externalNormalMap: 0
|
|
21
|
+
heightScale: 0.25
|
|
22
|
+
normalMapFilter: 0
|
|
23
|
+
isReadable: 0
|
|
24
|
+
streamingMipmaps: 0
|
|
25
|
+
streamingMipmapsPriority: 0
|
|
26
|
+
vTOnly: 0
|
|
27
|
+
grayScaleToAlpha: 0
|
|
28
|
+
generateCubemap: 6
|
|
29
|
+
cubemapConvolution: 0
|
|
30
|
+
seamlessCubemap: 0
|
|
31
|
+
textureFormat: 1
|
|
32
|
+
maxTextureSize: 2048
|
|
33
|
+
textureSettings:
|
|
34
|
+
serializedVersion: 2
|
|
35
|
+
filterMode: 1
|
|
36
|
+
aniso: 1
|
|
37
|
+
mipBias: 0
|
|
38
|
+
wrapU: 0
|
|
39
|
+
wrapV: 0
|
|
40
|
+
wrapW: 0
|
|
41
|
+
nPOTScale: 1
|
|
42
|
+
lightmap: 0
|
|
43
|
+
compressionQuality: 50
|
|
44
|
+
spriteMode: 0
|
|
45
|
+
spriteExtrude: 1
|
|
46
|
+
spriteMeshType: 1
|
|
47
|
+
alignment: 0
|
|
48
|
+
spritePivot: {x: 0.5, y: 0.5}
|
|
49
|
+
spritePixelsToUnits: 100
|
|
50
|
+
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
|
51
|
+
spriteGenerateFallbackPhysicsShape: 1
|
|
52
|
+
alphaUsage: 1
|
|
53
|
+
alphaIsTransparency: 1
|
|
54
|
+
spriteTessellationDetail: -1
|
|
55
|
+
textureType: 0
|
|
56
|
+
textureShape: 1
|
|
57
|
+
singleChannelComponent: 0
|
|
58
|
+
flipbookRows: 1
|
|
59
|
+
flipbookColumns: 1
|
|
60
|
+
maxTextureSizeSet: 0
|
|
61
|
+
compressionQualitySet: 0
|
|
62
|
+
textureFormatSet: 0
|
|
63
|
+
ignorePngGamma: 0
|
|
64
|
+
applyGammaDecoding: 0
|
|
65
|
+
platformSettings:
|
|
66
|
+
- serializedVersion: 3
|
|
67
|
+
buildTarget: DefaultTexturePlatform
|
|
68
|
+
maxTextureSize: 2048
|
|
69
|
+
resizeAlgorithm: 0
|
|
70
|
+
textureFormat: -1
|
|
71
|
+
textureCompression: 1
|
|
72
|
+
compressionQuality: 50
|
|
73
|
+
crunchedCompression: 0
|
|
74
|
+
allowsAlphaSplitting: 0
|
|
75
|
+
overridden: 0
|
|
76
|
+
androidETC2FallbackOverride: 0
|
|
77
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
78
|
+
- serializedVersion: 3
|
|
79
|
+
buildTarget: Standalone
|
|
80
|
+
maxTextureSize: 2048
|
|
81
|
+
resizeAlgorithm: 0
|
|
82
|
+
textureFormat: -1
|
|
83
|
+
textureCompression: 1
|
|
84
|
+
compressionQuality: 50
|
|
85
|
+
crunchedCompression: 0
|
|
86
|
+
allowsAlphaSplitting: 0
|
|
87
|
+
overridden: 0
|
|
88
|
+
androidETC2FallbackOverride: 0
|
|
89
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
90
|
+
- serializedVersion: 3
|
|
91
|
+
buildTarget: iPhone
|
|
92
|
+
maxTextureSize: 2048
|
|
93
|
+
resizeAlgorithm: 0
|
|
94
|
+
textureFormat: -1
|
|
95
|
+
textureCompression: 1
|
|
96
|
+
compressionQuality: 50
|
|
97
|
+
crunchedCompression: 0
|
|
98
|
+
allowsAlphaSplitting: 0
|
|
99
|
+
overridden: 0
|
|
100
|
+
androidETC2FallbackOverride: 0
|
|
101
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
102
|
+
- serializedVersion: 3
|
|
103
|
+
buildTarget: WebGL
|
|
104
|
+
maxTextureSize: 2048
|
|
105
|
+
resizeAlgorithm: 0
|
|
106
|
+
textureFormat: -1
|
|
107
|
+
textureCompression: 1
|
|
108
|
+
compressionQuality: 50
|
|
109
|
+
crunchedCompression: 0
|
|
110
|
+
allowsAlphaSplitting: 0
|
|
111
|
+
overridden: 0
|
|
112
|
+
androidETC2FallbackOverride: 0
|
|
113
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
114
|
+
- serializedVersion: 3
|
|
115
|
+
buildTarget: Android
|
|
116
|
+
maxTextureSize: 2048
|
|
117
|
+
resizeAlgorithm: 0
|
|
118
|
+
textureFormat: -1
|
|
119
|
+
textureCompression: 1
|
|
120
|
+
compressionQuality: 50
|
|
121
|
+
crunchedCompression: 0
|
|
122
|
+
allowsAlphaSplitting: 0
|
|
123
|
+
overridden: 0
|
|
124
|
+
androidETC2FallbackOverride: 0
|
|
125
|
+
forceMaximumCompressionQuality_BC6H_BC7: 0
|
|
126
|
+
spriteSheet:
|
|
127
|
+
serializedVersion: 2
|
|
128
|
+
sprites: []
|
|
129
|
+
outline: []
|
|
130
|
+
physicsShape: []
|
|
131
|
+
bones: []
|
|
132
|
+
spriteID:
|
|
133
|
+
internalID: 0
|
|
134
|
+
vertices: []
|
|
135
|
+
indices:
|
|
136
|
+
edges: []
|
|
137
|
+
weights: []
|
|
138
|
+
secondaryTextures: []
|
|
139
|
+
spritePackingTag:
|
|
140
|
+
pSDRemoveMatte: 0
|
|
141
|
+
pSDShowRemoveMatteOption: 0
|
|
142
|
+
userData:
|
|
143
|
+
assetBundleName:
|
|
144
|
+
assetBundleVariant:
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.
|
|
1
|
+
{"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.13","description":"unity端个汇总渠道的sdk,统一接口,一键发布","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
|