Skip to content

Commit 61fe912

Browse files
committed
fixup my createassetwithtext fix
1 parent d210453 commit 61fe912

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/AssetImporter/InputActionImporter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,13 @@ internal static IEnumerable<InputActionReference> LoadInputActionReferencesFromA
328328
[MenuItem("Assets/Create/Input Actions")]
329329
public static void CreateInputAsset()
330330
{
331+
#if UNITY_6000_4_OR_NEWER
331332
ProjectWindowUtil.CreateAssetWithTextContent("New Actions." + InputActionAsset.Extension,
332333
InputActionAsset.kDefaultAssetLayoutJson, InputActionAssetIconLoader.LoadAssetIcon());
334+
#else
335+
ProjectWindowUtil.CreateAssetWithContent("New Actions." + InputActionAsset.Extension,
336+
InputActionAsset.kDefaultAssetLayoutJson, InputActionAssetIconLoader.LoadAssetIcon());
337+
#endif
333338
}
334339

335340
// File extension of the associated asset

0 commit comments

Comments
 (0)