static const string | HiglightColor[Get] |
static void | AssertIsTrue ( this Component component, bool value, string whyItFailed, string whereItFailed, string howToFix ) Asserts that the expression is True. |
static void | AssertAspect< TValue > ( this Component component, TValue aspect, string aspectLocation, string whyItFailed, string whereFailed, string howToFix ) Asserts that an Aspect exists. |
static void | AssertField< TValue > ( this Component component, TValue value, string variableName, string whyItFailed, string whereItFailed, string howToFix ) Asserts that a Serialized Field in a Component is not null. |
static void | AssertCollectionField< TValue > ( this Component component, IEnumerable< TValue > value, string variableName, string whyItFailed, string whereFailed, string howToFix ) Asserts that a Serialized collection in a Component is not null, is not empty and all of its items exist. |
static void | AssertCollectionItems< TValue > ( this Component component, IEnumerable< TValue > value, string variableName, string whyItFailed, string whereItFailed, string howToFix ) Asserts that each item in a Serialized collection in a Component is not null. |
static string | Nicify ( string variableName ) Make a displayable name for a variable. |
const string Oculus.Interaction.AssertUtils.HiglightColor |
---|
No description available.
|
static void Oculus.Interaction.AssertUtils.AssertIsTrue ( this Component component, bool value, string whyItFailed, string whereItFailed, string howToFix ) |
---|
Asserts that the expression is True. In case of failure, it will print an error showing where the failure happened. Parameters component The component to which the value expression belongs valueThe expression that should be true whyItFailedOptional parameter specifying the reason the assert failed whereItFailedOptional parameter specifying where the failure can be found. If none is provided it will print the component address (GameObject->Component). howToFixOptional parameter suggesting how to fix the problem. |
static void Oculus.Interaction.AssertUtils.AssertAspect< TValue > ( this Component component, TValue aspect, string aspectLocation, string whyItFailed, string whereFailed, string howToFix ) |
---|
Asserts that an Aspect exists. In case of failure, it will print an error showing why it failed, where it failed and suggest how to fix it. Others TValue The type of Aspect to be checked Parameters component The component requiring this Aspect aspectThe Aspect to be checked aspectLocationThe expected location of the Aspect whyItFailedOptional parameter specifying the reason the assert failed. If none is provided it will print the expected aspect type and location. whereFailedOptional parameter specifying where the failure can be found. If none is provided it will print the component address (GameObject->Component). howToFixOptional parameter suggesting how to fix the problem. If none is provided it will suggest assigning an Aspect of the required type to the expected location. |
static void Oculus.Interaction.AssertUtils.AssertField< TValue > ( this Component component, TValue value, string variableName, string whyItFailed, string whereItFailed, string howToFix ) |
---|
Asserts that a Serialized Field in a Component is not null. In case of failure, it will print an error showing why it failed, where it failed and suggest how to fix it. Others TValue The type of field to be checked Parameters component The component to which this field belongs. valueThe value of the field. variableNameThe printed name of the serialized field. whyItFailedOptional parameter specifying the reason the assert failed. If none is provided it will indicate that the field value was null. whereItFailedOptional parameter specifying where the failure can be found. If none is provided it will print the component address (GameObject->Component->Field Name). howToFixOptional parameter suggesting how to fix the problem. If none is provided it will suggest assigning a value of the required type to the field. |
static void Oculus.Interaction.AssertUtils.AssertCollectionField< TValue > ( this Component component, IEnumerable< TValue > value, string variableName, string whyItFailed, string whereFailed, string howToFix ) |
---|
Asserts that a Serialized collection in a Component is not null, is not empty and all of its items exist. In case of failure, it will print an error showing why it failed, where it failed and suggest how to fix it. Others TValue The type of the items in the collection. Parameters component The component to which this collection belongs. valueThe value of the collection. variableNameThe printed name of the serialized collection. whyItFailedOptional parameter specifying the reason the assert failed. If none is provided it will indicate that the collection value needs at least one valid item. whereFailedOptional parameter specifying where the failure can be found. If none is provided it will print the component address (GameObject->Component->Collection Name). howToFixOptional parameter suggesting how to fix the problem. If none is provided it will suggest assigning at least one valid item of the required type to the collection. |
static void Oculus.Interaction.AssertUtils.AssertCollectionItems< TValue > ( this Component component, IEnumerable< TValue > value, string variableName, string whyItFailed, string whereItFailed, string howToFix ) |
---|
Asserts that each item in a Serialized collection in a Component is not null. Note that the collection it might contain 0 items. In case of failure, it will print an error showing why it failed, where it failed and suggest how to fix it. Others TValue The type of the items in the collection Parameters component The component to which the collection belongs. valueThe value of the collection. variableNameThe printed name of the serialized collection. whyItFailedOptional parameter specifying the reason the assert failed. If none is provided it will indicate, for each failed item, that the item must not be null. whereItFailedOptional parameter specifying where the failure can be found. If none is provided it will print the component address (GameObject->Component->Collection Name). howToFixOptional parameter suggesting how to fix the problem. If none is provided it will suggest assigning a valid item of the required type to the collection at each missing index. |
static string Oculus.Interaction.AssertUtils.Nicify ( string variableName ) |
---|
Make a displayable name for a variable. This function will insert spaces before capital letters and remove optional m_, _ or k followed by uppercase letter in front of the name. Parameters variableName The variable name as used in code Returns The nicified variable |