Skip to content

Photospheres

mika edited this page Apr 26, 2018 · 2 revisions

Photospheres

  • void PhotoSphere_ClearAllObjects()
    • removes created objects from the current photospheres, including portals, buttons and all
  • string PhotoSphere_GetCurrentRoomID()
    • returns current room localid
  • void PhotoSphere_Goto(string id)
    • go to room with this localid
  • void PhotoSphere_ShowPortals()
    • shows portals (if were hidden)
  • void PhotoSphere_HidePortals()
    • hides portals (if were visible)
  • void PhotoSphere_SetPointer(float u, float v)
    • sets pointer in sphere uv coordinate (so target arrow is then visible too)
  • vector2 PhotoSphere_GetUVCoordinateForObject(string target)
    • returns uv coordinate for object (raycasted from center of sphere to against sphere)
    • returns -1,-1 if invalid
  • void PhotoSphere_SetPointerToObject(string target)
    • sets pointer to object (using the GetUVCoordinateForObject())
  • void PhotoSphere_HideSpheres()
    • hides photospheres
  • void PhotoSphere_ShowSpheres()
    • shows photospheres

Clone this wiki locally