ORK Framework  2.25.2
API Documentation
ORKFramework.CombatantPrefabViewPortrait Class Reference
Inheritance diagram for ORKFramework.CombatantPrefabViewPortrait:
ORKFramework.BasePortrait ORKFramework.BaseData ORKFramework.IPortrait ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
void SetPrefab (GameObject prefab)
 
override void Init ()
 
override void Clear ()
 
- Public Member Functions inherited from ORKFramework.BasePortrait
virtual Material GetMaterial ()
 
- 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...
 

Static Public Member Functions

static TypePrefabViewPortrait [] UpgradeData (DataObject data, string usePortraitName, string portraitName)
 
static CombatantPrefabViewPortrait GetPortrait (int typeID, CombatantPrefabViewPortrait[] portrait)
 

Public Attributes

int typeID = 0
 
bool usePrefabView = false
 
bool setPrefab = false
 
AssetSource< GameObject > prefab
 
bool ignoreEquipmentViewerConditions = false
 
Vector3 rotation = Vector3.zero
 
string childName = ""
 
bool ownCamera = false
 
PrefabViewCameraSettings camera
 
bool ownBackground = false
 
PrefabViewBackgroundSettings background
 
AssetSource< Texture > image
 
- Public Attributes inherited from ORKFramework.BasePortrait
bool useAlphaMask = false
 
bool useMaterial = false
 
AssetSource< Material > maskMaterial
 
bool ownPortraitPosition = false
 
PortraitPosition portraitPosition
 

Properties

override Texture? Image [get]
 
PrefabViewCameraSettingsCamera [get]
 
PrefabViewBackgroundSettingsBackground [get]
 
bool CanSetPrefab [get]
 
- Properties inherited from ORKFramework.BasePortrait
virtual Texture Image [get]
 
bool UseAlphaMask [get]
 
bool OwnPortraitPosition [get]
 
PortraitPosition PortraitPosition [get]
 
- Properties inherited from ORKFramework.IPortrait
Texture Image [get]
 
bool UseAlphaMask [get]
 
bool OwnPortraitPosition [get]
 
PortraitPosition PortraitPosition [get]
 

Member Function Documentation

◆ SetData()

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

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BasePortrait.