Skip to content

Create ScriptableObject for mocking out responses and interaction in the editor #5

@neogeek

Description

@neogeek

Rather than needed to do this:

#if UNITY_IOS && !UNITY_EDITOR
Debug.Log(CandyCoded.UnityIOSBridge.Accessibility.IOSUIAccessibilityIsAssistiveTouchRunning()); // true
#endif

And not receiving a response, a scriptable object can be used to mock the response:

#if UNITY_IOS
Debug.Log(iosBridge.Accessibility.IOSUIAccessibilityIsAssistiveTouchRunning());
#endif

The value can then be changed in the scriptable object if a boolean, or in the case of the alert box, change is ok or cancel is automatically clicked.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions