File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Packages/com.unity.inputsystem/InputSystem/Actions Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -253,9 +253,9 @@ public InputAction ToInputAction()
253
253
/// </remarks>
254
254
/// <exception cref="InvalidOperationException">Thrown if this input action reference is part of an
255
255
/// input actions asset and mutating it would have side-effects on the projects assets.</exception>
256
- [ System . Diagnostics . Conditional ( "UNITY_EDITOR" ) ]
257
256
private void CheckImmutableReference ( )
258
257
{
258
+ #if UNITY_EDITOR
259
259
// Note that we do a lot of checking here, but it is only for a rather slim (unintended) use case in
260
260
// editor and not in final builds. The alternative would be to set a non-serialized field on the reference
261
261
// when importing assets which would simplify this class, but it adds complexity to import stage and
@@ -300,6 +300,7 @@ static bool CanSetReference(InputActionReference reference)
300
300
"in-memory instance or serialize it as a separate asset if it " +
301
301
"survive domain reloads." ) ;
302
302
}
303
+ #endif // UNITY_EDITOR
303
304
}
304
305
}
305
306
}
You can’t perform that action at this time.
0 commit comments