Closed SimonDarksideJ closed 4 years ago
We already do this sans case 4.
The 4th case could easily be handled in the service implementation.
Agreed, this is simply setting the requirement for the entire ask (so nothing gets missed in testing)
WIth 4 however, given the platform Utility is currently dictating when a service can be run, you couldn't do that in the service implementation :D But it's something to review. Maybe by having a service define it's "supportability"
I am open to doing something similar to #377 though
With 4 however, given the platform Utility is currently dictating when a service can be run, you couldn't do that in the service implementation
Yeah that's exactly what I was saying 😅
You'd essentially enable the EVERYTHING flag and then in your implementation #if/#else
out the implementation.
But I'm also having a hart time trying to find a use case for 4.
Could you describe it to me?
- This can be run in the Editor when the build target is selected and can ALSO run in the Build
This just sounds like case 2.
I think it should be updated to read:
- This runs in the editor ALL the time, and only on the selected platform build
Simply put, it meets these two conditions
In option 2, it would only ever run in the editor for that platform and not the player. (you have a mock service for a platform)
Simply put, it meets these two conditions
- it will run in the editor if the selected build target is the same as the editor target
- it will also run in the selected target player.
This is word for word case 2:
This should run ONLY in the editor if the build target IS Selected:
it would only ever run in the editor for that platform and not the player
Is this more of what you want case 4 to be?
If we're doing a mock service for this use case why can't it be platform agnostic if it's just a mock service and use case 1?
Figure | Editor | Runtime | Description |
---|---|---|---|
1 | X | Only Editor | |
2 | X | X | Both Editor and Runtime |
3 | X | Only Runtime | |
4 | X | (or) X | Editor OR Runtime |
Can I get confirmation that use case 4 is effectively Everything
in the current dropdown?
Updated requirements
Can we agree that the current implementation already satisfies this issue?
The implementation discussed last night, where a service can run all the time did satisfy the requirement.
XRTK - Mixed Reality Toolkit Feature Request
Is your feature request related to a problem? Please describe
Current Platform evaluations for services do not cover the full extent of the potential requirements, given that services require the ability to operate in the following conditions:
Currently, only the first three modes are supported based on #374
As we expand the list of potential platforms (#377) these capabilities need to be reviewed
How would you classify your suggestion
Describe the solution you'd like
(Leading from the example given in #374)
This should run ONLY in the editor regardless of the target build platform but never the build:
This should run ONLY in the editor if the build target IS Selected:
This should never run in the editor and only runs on the build:
This can be run in the Editor and any build target (Image tbc)
Describe alternatives you've considered
No alternatives currently exist
Additional context
Related to #377