Table of Contents

Class CurvedUISettings

Namespace
CurvedUI
Assembly
Assembly-CSharp.dll
[AddComponentMenu("CurvedUI/CurvedUISettings")]
[RequireComponent(typeof(Canvas))]
public class CurvedUISettings : MonoBehaviour
Inheritance
CurvedUISettings
Inherited Members
Extension Methods

Constructors

CurvedUISettings()

public CurvedUISettings()

Fields

Version

public const string Version = "3.4"

Field Value

string

angle

[SerializeField]
public int angle

Field Value

int

baseCircleSegments

public int baseCircleSegments

Field Value

int

blocksRaycasts

[SerializeField]
public bool blocksRaycasts

Field Value

bool

forceUseBoxCollider

[SerializeField]
public bool forceUseBoxCollider

Field Value

bool

interactable

[SerializeField]
public bool interactable

Field Value

bool

m_rectTransform

public RectTransform m_rectTransform

Field Value

RectTransform

myCanvas

public Canvas myCanvas

Field Value

Canvas

preserveAspect

[SerializeField]
public bool preserveAspect

Field Value

bool

quality

[SerializeField]
public float quality

Field Value

float

ringExternalDiamater

[SerializeField]
public int ringExternalDiamater

Field Value

int

ringFill

[SerializeField]
public float ringFill

Field Value

float

ringFlipVertical

[SerializeField]
public bool ringFlipVertical

Field Value

bool

savedRadius

public float savedRadius

Field Value

float

savedRectSize

public Vector2 savedRectSize

Field Value

Vector2

shape

[SerializeField]
public CurvedUISettings.CurvedUIShape shape

Field Value

CurvedUISettings.CurvedUIShape

vertAngle

[SerializeField]
public int vertAngle

Field Value

int

Properties

Angle

public int Angle { get; set; }

Property Value

int

BaseCircleSegments

public int BaseCircleSegments { get; }

Property Value

int

BlocksRaycasts

public bool BlocksRaycasts { get; set; }

Property Value

bool

ControlMethod

public CurvedUIInputModule.CUIControlMethod ControlMethod { get; set; }

Property Value

CurvedUIInputModule.CUIControlMethod

ForceUseBoxCollider

public bool ForceUseBoxCollider { get; set; }

Property Value

bool

GazeClickTimer

public float GazeClickTimer { get; set; }

Property Value

float

GazeClickTimerDelay

public float GazeClickTimerDelay { get; set; }

Property Value

float

GazeTimerProgress

public float GazeTimerProgress { get; }

Property Value

float

GazeUseTimedClick

public bool GazeUseTimedClick { get; set; }

Property Value

bool

Interactable

public bool Interactable { get; set; }

Property Value

bool

PointingAtCanvas

public bool PointingAtCanvas { get; }

Property Value

bool

PreserveAspect

public bool PreserveAspect { get; set; }

Property Value

bool

Quality

public float Quality { get; set; }

Property Value

float

RaycastMyLayerOnly

[Obsolete("Use RaycastLayerMask property instead.")]
public bool RaycastMyLayerOnly { get; set; }

Property Value

bool

RectTransform

public RectTransform RectTransform { get; }

Property Value

RectTransform

RingExternalDiameter

public int RingExternalDiameter { get; set; }

Property Value

int

RingFill

public float RingFill { get; set; }

Property Value

float

RingFlipVertical

public bool RingFlipVertical { get; set; }

Property Value

bool

SavedRadius

public float SavedRadius { get; }

Property Value

float

Shape

public CurvedUISettings.CurvedUIShape Shape { get; set; }

Property Value

CurvedUISettings.CurvedUIShape

VerticalAngle

public int VerticalAngle { get; set; }

Property Value

int

Methods

AddEffectToChildren()

public void AddEffectToChildren()

Awake()

public void Awake()

CanvasToCurvedCanvas(Vector3)

public Vector3 CanvasToCurvedCanvas(Vector3 pos)

Parameters

pos Vector3

Returns

Vector3

CanvasToCurvedCanvasNormal(Vector3)

public Vector3 CanvasToCurvedCanvasNormal(Vector3 pos)

Parameters

pos Vector3

Returns

Vector3

CanvasToCyllinder(Vector3)

public Vector3 CanvasToCyllinder(Vector3 pos)

Parameters

pos Vector3

Returns

Vector3

CanvasToCyllinderVertical(Vector3)

public Vector3 CanvasToCyllinderVertical(Vector3 pos)

Parameters

pos Vector3

Returns

Vector3

CanvasToRing(Vector3)

public Vector3 CanvasToRing(Vector3 pos)

Parameters

pos Vector3

Returns

Vector3

CanvasToSphere(Vector3)

public Vector3 CanvasToSphere(Vector3 pos)

Parameters

pos Vector3

Returns

Vector3

Click()

public void Click()

GetCyllinderRadiusInCanvasSpace()

public float GetCyllinderRadiusInCanvasSpace()

Returns

float

GetObjectsHitByRay(Ray)

public List<GameObject> GetObjectsHitByRay(Ray ray)

Parameters

ray Ray

Returns

List<GameObject>

GetObjectsUnderPointer()

public List<GameObject> GetObjectsUnderPointer()

Returns

List<GameObject>

GetObjectsUnderScreenPos(Vector2, Camera)

public List<GameObject> GetObjectsUnderScreenPos(Vector2 pos, Camera eventCamera = null)

Parameters

pos Vector2
eventCamera Camera

Returns

List<GameObject>

GetSegmentsByAngle(float)

public float GetSegmentsByAngle(float angle)

Parameters

angle float

Returns

float

GetTesslationSize(bool)

public Vector2 GetTesslationSize(bool modifiedByQuality = true)

Parameters

modifiedByQuality bool

Returns

Vector2

OnDisable()

public void OnDisable()

OnEnable()

public void OnEnable()

RaycastToCanvasSpace(Ray, out Vector2)

public bool RaycastToCanvasSpace(Ray ray, out Vector2 o_positionOnCanvas)

Parameters

ray Ray
o_positionOnCanvas Vector2

Returns

bool

SetAllChildrenDirty(bool)

public void SetAllChildrenDirty(bool recalculateCurveOnly = false)

Parameters

recalculateCurveOnly bool

SetUIAngle(int)

public void SetUIAngle(int newAngle)

Parameters

newAngle int

Start()

public void Start()

Update()

public void Update()

VertexPositionToCurvedCanvas(Vector3)

public Vector3 VertexPositionToCurvedCanvas(Vector3 pos)

Parameters

pos Vector3

Returns

Vector3