ORK Framework  2.25.2
API Documentation
ORKFramework.EquipmentPrefab Class Reference
Inheritance diagram for ORKFramework.EquipmentPrefab:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
GameObject CreateViewerPrefab (Transform parent, bool isPrefabView)
 
Material GetViewerMaterial (bool isPrefabView)
 
- 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

ItemPrefab itemPrefab = new ItemPrefab()
 
AssetSource< GameObject > prefabViewPrefab = new AssetSource<GameObject>()
 
AssetSource< GameObject > viewerPrefab = new AssetSource<GameObject>()
 
AssetSource< GameObject > prefabViewViewerPrefab = new AssetSource<GameObject>()
 
string viewerName = ""
 
Vector3 viewerPosOff = Vector3.zero
 
Vector3 viewerRotOff = Vector3.zero
 
bool viewerLocalRotation = false
 
AssetSource< Material > viewerMaterial = new AssetSource<Material>()
 
AssetSource< Material > prefabViewMaterial = new AssetSource<Material>()
 

Member Function Documentation

◆ SetData()

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

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.