Interface IProvidesRayVisibilitySettings
Provide the ability to control ray visibility
Inherited Members
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public interface IProvidesRayVisibilitySettings : IFunctionalityProvider
Methods
AddRayVisibilitySettings(Transform, Object, Boolean, Boolean, Int32)
Add visibility settings to try and show/hide the ray/cone
Declaration
void AddRayVisibilitySettings(Transform rayOrigin, object caller, bool rayVisible, bool coneVisible, int priority = 0)
Parameters
Type | Name | Description |
---|---|---|
Transform | rayOrigin | The ray to hide or show |
Object | caller | The object which is adding settings |
Boolean | rayVisible | Show or hide the ray |
Boolean | coneVisible | Show or hide the cone |
Int32 | priority | (Optional) The priority level of this request |
RemoveRayVisibilitySettings(Transform, Object)
Remove visibility settings
Declaration
void RemoveRayVisibilitySettings(Transform rayOrigin, object caller)
Parameters
Type | Name | Description |
---|---|---|
Transform | rayOrigin | The ray from which to remove settings |
Object | caller | The object whose settings to remove |