Stores data related to a Document at runtime
◆ DocumentInstance() [1/2]
AC.DocumentInstance.DocumentInstance |
( |
Document |
document | ) |
|
A Constructore that assigns the Document directly
◆ DocumentInstance() [2/2]
AC.DocumentInstance.DocumentInstance |
( |
int |
id | ) |
|
A Constructore that assigns the Document based on its ID in the Inventory Manager
◆ GetPageTexture()
Texture2D AC.DocumentInstance.GetPageTexture |
( |
int |
pageNumber | ) |
|
Gets the texture associated with a given page. This can be overridden with SetPageTexture.
- Parameters
-
pageNumber | The number of the page, starting from 1 |
- Returns
- The page's texture
◆ SetPageTexture()
void AC.DocumentInstance.SetPageTexture |
( |
int |
pageNumber, |
|
|
Texture2D |
texture |
|
) |
| |
Sets the texture associated with a given page. This will override the default.
- Parameters
-
pageNumber | The number of the page, starting from 1 |
texture | The page's new texture. If null, it will revert to its default texture |
◆ Document
readonly Document AC.DocumentInstance.Document |
◆ hasBeenViewed
bool AC.DocumentInstance.hasBeenViewed |
◆ lastOpenPage
int AC.DocumentInstance.lastOpenPage = 1 |
The index number of the page last shown
◆ CategoryID
int? AC.DocumentInstance.CategoryID |
|
get |
The linked Document's category ID, or -1 if invalid
◆ DocumentID
int? AC.DocumentInstance.DocumentID |
|
get |
The linked Document's ID, or -1 if invalid