ORK Framework  2.24.0
API Documentation
ORKFramework.GridCellPrefab Class Reference
Inheritance diagram for ORKFramework.GridCellPrefab:
ORKFramework.BaseData ORKFramework.IBaseData

Public Member Functions

override void SetData (DataObject data)
 Sets the variables of the class using a ORKFramework.DataObject. More...
 
GameObject CreatePrefabInstance (BattleGridCellComponent cell, bool isHighlight)
 
GameObject CreatePrefabInstance (BattleGridCellComponent cell, GameObject usedPrefab, bool isHighlight)
 
- 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

AssetSource< GameObject > prefab = new AssetSource<GameObject>()
 
bool autoAddBlinker = false
 
Vector3 positionOffset = Vector3.zero
 
bool localPosition = false
 
bool useOriginalPosition = false
 
Vector3 rotationOffset = Vector3.zero
 
bool usePrefabRotation = false
 
bool setScale = false
 
Vector3 scale = Vector3.one
 

Member Function Documentation

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

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

Parameters
dataORKFramework.DataObject containing the data.

Reimplemented from ORKFramework.BaseData.