You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Class concept: helper class that holds a generated asset object, during the import phase of scripted importer.
16
16
//
17
-
// Motivation: A source asset file can produce multiple assets (a main one and multple sub assets). Needed a way to genericaly hold these sub assets of the source Asset.
17
+
// Motivation: A source asset file can produce multiple objects. Needed a way to generically hold these objects and keep track of which one is the main object.
18
18
classImportedObject
19
19
{
20
20
// Is this the main part of the asset being imported?
21
-
publicboolmainAsset{get;set;}
21
+
publicboolmainAssetObject{get;set;}
22
22
23
-
publicObjectasset{get;set;}
23
+
publicObjectobj{get;set;}
24
24
25
-
// Unique identifier, within imported asset context, of asset
26
-
publicstringidentifier{get;set;}
25
+
publicstringlocalIdentifier{get;set;}
27
26
28
27
publicTexture2Dthumbnail{get;set;}
29
28
}
@@ -33,70 +32,62 @@ public class AssetImportContext
thrownewException(String.Format(@"A Main asset has already been added and only one is allowed: ""{0}"" conflicting on ""{1}"" and ""{2}""",assetPath,mainAsset.identifier,identifier));
80
+
thrownewArgumentNullException("obj","Cannot add a null object : "+(identifier??"<null>"));
Copy file name to clipboardExpand all lines: Editor/Mono/BuildPlayerWindow.cs
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,6 @@ class Styles
68
68
{EditorGUIUtility.TextContent("Your license does not cover Wii U Publishing."),EditorGUIUtility.TextContent("Contact sales"),newGUIContent(kMailURL)},
69
69
{EditorGUIUtility.TextContent("Your license does not cover Universal Windows Platform Publishing."),EditorGUIUtility.TextContent("Go to Our Online Store"),newGUIContent(kShopURL)},
70
70
{EditorGUIUtility.TextContent("Your license does not cover Windows Phone 8 Publishing."),EditorGUIUtility.TextContent("Go to Our Online Store"),newGUIContent(kShopURL)},
71
-
{EditorGUIUtility.TextContent("Your license does not cover SamsungTV Publishing"),EditorGUIUtility.TextContent("Go to Our Online Store"),newGUIContent(kShopURL)},
72
71
{EditorGUIUtility.TextContent("Your license does not cover Nintendo 3DS Publishing"),EditorGUIUtility.TextContent("Contact sales"),newGUIContent(kMailURL)},
73
72
{EditorGUIUtility.TextContent("Your license does not cover Facebook Publishing"),EditorGUIUtility.TextContent("Go to Our Online Store"),newGUIContent(kShopURL)},
74
73
{EditorGUIUtility.TextContent("Your license does not cover Nintendo Switch Publishing"),EditorGUIUtility.TextContent("Contact sales"),newGUIContent(kMailURL)},
@@ -88,7 +87,6 @@ class Styles
88
87
{EditorGUIUtility.TextContent("Wii U Player is not supported in this build.\nDownload a build that supports it."),null,newGUIContent(kDownloadURL)},
89
88
{EditorGUIUtility.TextContent("Universal Windows Platform Player is not supported in\nthis build.\n\nDownload a build that supports it."),null,newGUIContent(kDownloadURL)},
90
89
{EditorGUIUtility.TextContent("Windows Phone 8 Player is not supported\nin this build.\n\nDownload a build that supports it."),null,newGUIContent(kDownloadURL)},
91
-
{EditorGUIUtility.TextContent("SamsungTV Player is not supported in this build.\nDownload a build that supports it."),null,newGUIContent(kDownloadURL)},
92
90
{EditorGUIUtility.TextContent("Nintendo 3DS is not supported in this build.\nDownload a build that supports it."),null,newGUIContent(kDownloadURL)},
93
91
{EditorGUIUtility.TextContent("Facebook is not supported in this build.\nDownload a build that supports it."),null,newGUIContent(kDownloadURL)},
94
92
{EditorGUIUtility.TextContent("Nintendo Switch is not supported in this build.\nDownload a build that supports it."),null,newGUIContent(kDownloadURL)},
0 commit comments