WoW API: SaveView

From AddOn Studio
Revision as of 15:16, 3 December 2009 by WoWWiki>Taurolyon (Formatting, added 'bugs' section and moved bug info from notes)
Jump to navigation Jump to search

WoW API < SaveView


Saves a camera angle for later retrieval with SetView.

SaveView(viewIndex)


Arguments

viewIndex
Number - The index (2-5) to save the camera angle to. (1 is reserved for first person view)

Returns

nil

Notes

Saved views are preserved across sessions.

Bugs

Fixed: A bug in 3.0-patches causes SaveView variables not to load first time you load a character after entering the game.
Reloading the UI, or reloading the character from character selection screen, will fix this bug. Source