API reference
API reference
Select your platform
No SDKs available
No versions available

CylinderSurface Class

Extends MonoBehaviour, ISurface, IBounds
Used for interaction with cylindrical surfaces such as a curved UI.

Member Enumerations

Enumeration NormalFacing

Any
Raycast hit will register on the outside or inside of the cylinder, whichever is hit first.
In
Raycasts will pass through the outside of the cylinder and hit the inside wall.
Out
Raycast against the outside wall of the cylinder.

Fields

bool IsValid[Get]
float Radius[Get]
Cylinder Cylinder[Get]
Transform Transform[Get]

Properties

Bounds Bounds[Get]
NormalFacing Facing[Get]
float Height[Get]

Protected Fields

bool _started[Get]

Protected Functions

virtual void Start ( )

Member Functions

Find nearest point to surface
Parameters
ray
Point to check
hit
The returned hit data
maxDistance
If greater than zero, maximum distance of check
Returns
true if nearest point was found
Raycast to the surface with an optional maximum distance value
Parameters
ray
The ray to cast
hit
The returned hit data
maxDistance
If greater than zero, maximum distance of raycast
Returns
true if surface was hit
void InjectAllCylinderSurface
( NormalFacing facing,
Cylinder cylinder,
float height )
void InjectNormalFacing
( NormalFacing facing )
void InjectCylinder
( Cylinder cylinder )
void InjectHeight
( float height )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon