ORK Framework  2.25.1
API Documentation
ORKFramework.PortraitPosition Class Reference
Inheritance diagram for ORKFramework.PortraitPosition:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
void Show (IPortrait portrait, Rect boxBounds)
 
RawImage CreateObject (IPortrait portrait, Rect boxBounds, GameObject parent)
 
- 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

Vector2 position = Vector2.zero
 
TextAnchor anchor = TextAnchor.UpperLeft
 
PortraitBoxPosition boxPosition = PortraitBoxPosition.Behind
 
bool isRelative = false
 
TextAnchor relativeTo = TextAnchor.UpperLeft
 
PortraitScaleType scaleType = PortraitScaleType.None
 
bool setSize = false
 
Vector2 imageSize = new Vector2(100, 100)
 

Member Function Documentation

◆ SetData()

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

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.