ORK Framework  2.26.1
API Documentation
ORKFramework.LookAtSettings Class Reference
Inheritance diagram for ORKFramework.LookAtSettings:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
bool CheckTarget (Camera camera, Transform user, Transform target)
 
bool SetTarget (Transform camera, Transform target, ref float timeout)
 
bool Set (Transform camera)
 
bool CheckCamPos ()
 
void Rotate (Transform camera)
 
- Public Member Functions inherited from ORKFramework.BaseData
virtual DataObject GetData ()
 Gets a ORKFramework.DataObject representing the class. More...
 
virtual void EditorAutoSetup (string fieldName)
 Called for all fields using the autoSetup option of the ORKFramework.ORKEditorLayoutAttribute. More...
 

Public Attributes

bool enable = false
 
float time = 0
 
float chance = 100
 
CameraLookAtType type = CameraLookAtType.CameraPosition
 
bool targetArena = false
 
string pathToChild = ""
 
LookAtRequirement requirement = new LookAtRequirement()
 
CamPosRotation [] camPos = new CamPosRotation[0]
 
bool cameraControlTargetReset = false
 
bool ownControlTargetTransition = false
 
CameraControlTargetTransition controlTargetTransition
 

Properties

bool IsSimpleLook [get]
 
bool IsCameraPosition [get]
 
bool IsCameraControlTarget [get]
 
Transform Target [get, set]
 

Member Function Documentation

◆ SetData()

override void ORKFramework.LookAtSettings.SetData ( DataObject  data)
virtual

Sets the variables of the class using a ORKFramework.DataObject.

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.