File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Packages/com.unity.inputsystem/InputSystem/Editor/AssetImporter Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments