Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.SceneItem Class Reference
Inheritance diagram for AC.SceneItem:

Classes

class  AllRememberData
 

Public Member Functions

void OnSpawn ()
 
void AssignLinkedInvInstance (InvInstance invInstance, bool applyRememberData=true, System.Action callback=null)
 
IEnumerator AssignLinkedInvInstanceCo (InvInstance invInstance, bool applyRememberData=true, System.Action callback=null)
 Sets the Inventory Item to link with the object More...
 
void SaveRememberDataToLinkedInstance ()
 
void ShowGUI ()
 

Properties

InvInstance LinkedInvInstance [get]
 
InvItemLinkedInvItem [get]
 

Detailed Description

A scene-object representation of an Inventory item

Member Function Documentation

◆ AssignLinkedInvInstanceCo()

IEnumerator AC.SceneItem.AssignLinkedInvInstanceCo ( InvInstance  invInstance,
bool  applyRememberData = true,
System.Action  callback = null 
)

Sets the Inventory Item to link with the object

Parameters
invInstanceThe InvInstance to link
applyRememberDataIf True, then any backup data for the SceneItem's Remember components will be applied
callbackA callback to invoke once the assignment is complete. This may take more than one frame if there is Remember data to apply

◆ OnSpawn()

void AC.SceneItem.OnSpawn ( )

Initialises the component. This needs to be called if the object it is attached to is generated/spawned at runtime manually through code.

◆ SaveRememberDataToLinkedInstance()

void AC.SceneItem.SaveRememberDataToLinkedInstance ( )

Updates the linked InvInstance with the Remember data of this object and its children

Property Documentation

◆ LinkedInvInstance

InvInstance AC.SceneItem.LinkedInvInstance
get

The InvInstance that this object represents

◆ LinkedInvItem

InvItem? AC.SceneItem.LinkedInvItem
get

The InvItem that this object represents