989onan bot (talk | contribs)  Automated: update Fields, SyncDelegates  | 
				989onan bot (talk | contribs)  Automated: update SyncDelegates  | 
				||
| Line 34: | Line 34: | ||
== Sync Delegates ==  | == Sync Delegates ==  | ||
{{Table ComponentTriggers  | {{Table ComponentTriggers  | ||
|OnSavePhoto[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|  | |OnSavePhoto:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|  | ||
|OnExportPhoto[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|  | |OnExportPhoto:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|  | ||
|SetFromCurrentWorld[[Type:Action|Action]]|[[Type:Action|Action]]|false| {{Template:AssetMetadataSetFromWorld}}  | |SetFromCurrentWorld:[[Type:Action|Action]]|[[Type:Action|Action]]|false| {{Template:AssetMetadataSetFromWorld}}  | ||
}}  | }}  | ||
Revision as of 06:31, 17 March 2025
Component image 
Photo Metadata component as seen in the Scene Inspector 

The PhotoMetadata component is used to contain the information on a photo usually taken within Resonite. It is automatically attached to every screenshot taken using the finger photo gesture. This component can also be attached to a photo imported with the "import as screenshot" option when importing an image.
Fields
| Name | Type | Description | 
|---|---|---|
persistent
 | 
Bool | Determines whether or not this item will be saved to the server. | 
UpdateOrder
 | 
Int | Controls the order in which this component is updated. | 
Enabled
 | 
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. | 
LocationName
 | 
String | Name of the session the screenshot was taken in. | 
LocationURL
 | 
Uri | The URI of the session's world that the photo was taken in. (basically a world link) | 
LocationHost
 | 
direct UserRef | Host of the session the screenshot was taken in. | 
LocationAccessLevel
 | 
Nullable`1<SessionAccessLevel> | Access level of the session. | 
LocationHiddenFromListing
 | 
Nullable`1<Bool> | Whether the location was marked as hidden. | 
TimeTaken
 | 
DateTime | Exact timestamp that the screenshot was taken. | 
TakenBy
 | 
direct UserRef | User who took the screenshot. | 
TakenGlobalPosition
 | 
Float3 | The position in global space the camera had when the photo was taken. | 
TakenGlobalRotation
 | 
FloatQ | The rotation in global space the camera had when the photo was taken. | 
TakenGlobalScale
 | 
Float3 | The scale in global space the camera had when the photo was taken. | 
AppVersion
 | 
String | Resonite version number of the photographer. | 
UserInfos
 | 
list of AssetMetadata.UserInfo | See UserInfo | 
__legacyPresentUsers
 | 
list of UserRef | Internal. no longer used. | 
CameraManufacturer
 | 
String | Manufacturer of the camera. | 
CameraModel
 | 
String | Model of the camera. | 
CameraFOV
 | 
Float | FOV of the camera at picture time. | 
Is360
 | 
Bool | Whether the image is a 360 degree image or not. | 
StereoLayout
 | 
StereoLayout | The layout of the image's left and right sections if it is a stereoscopic image, also known as a 3D image. | 
_exportedUsers
 | 
unordered list of UserRef | This is a list of users that exported the screenshot. If this component is part of a saved item, this is the list of users that exported the screenshot before the item was saved to the cloud. | 
Sync Delegates
| Method Name | Method type and Arguments. | Is the method hidden? | Description | 
|---|---|---|---|
OnSavePhoto:ButtonEventHandler
 | 
ButtonEventHandler | ✓ | |
OnExportPhoto:ButtonEventHandler
 | 
ButtonEventHandler | ✓ | |
SetFromCurrentWorld:Action
 | 
Action | X | fills in all the fields using the current session data and the local user (the user running this method) | 
Examples
- 
			
			The PhotoMetadata component on a screenshot.