Interface ILineRenderable
Get line points and hit point info for rendering
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public interface ILineRenderable
Methods
GetLinePoints(ref Vector3[], ref Int32)
Declaration
bool GetLinePoints(ref Vector3[] linePoints, ref int noPoints)
Parameters
Type | Name | Description |
---|---|---|
Vector3[] | linePoints | |
Int32 | noPoints |
Returns
Type | Description |
---|---|
Boolean |
TryGetHitInfo(ref Vector3, ref Vector3, ref Int32, ref Boolean)
Declaration
bool TryGetHitInfo(ref Vector3 position, ref Vector3 normal, ref int positionInLine, ref bool isValidTarget)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | |
Vector3 | normal | |
Int32 | positionInLine | |
Boolean | isValidTarget |
Returns
Type | Description |
---|---|
Boolean |