Documentation & Tutorials
  • Pivec Labs Documentation & Tutorials
  • Assets for Game Creator 1
    • Action Pack 1
      • Action List
        • Misc Actions
        • Object Actions
        • TMP Actions
      • Examples
        • Example 1 TMP
        • Example 2 Objects
        • Example 3 Actions
    • Action Pack 2
      • Action List
        • Camera Actions
        • Graphics Actions
        • Audio Actions
        • Video Actions
      • Triggers
      • Components
      • Examples
        • Example 1 - Camera
        • Example 2 - Camera FPS
        • Example 3 - Graphics
        • Example 4 - Sounds
        • Example 5 - Audio Player
        • Example 6 - Video Player
    • Action Pack 3
      • Action List
        • Day/Night Cycle
        • Light Control
      • Components
      • Examples
        • Example 1 - Day Night Cycle
        • Example 2 - Light Control
    • Accessibility Module
      • Components
      • Setup
      • Auditory Aids
        • Closed Captions for Sounds
        • Volume Control with Tags
        • Multiple Volume Controls
      • Motoric Aids
        • Configurable Tank Camera
        • On-Screen Multi-Function Joystick
        • Dynamic Touchstick
        • Multi-Function Touchstick
      • Cognitive Aids
        • Parental Controls with Password
        • Dyslexia Font Options
        • Motion Sickness Prevention
        • Gameplay Speed and Sensitivity
      • Visual Aids
        • Colour Picker
        • Variable Text Size
        • Object Outlining
        • Colour Switching
        • Colour Correction
    • Mobile Components
      • Actions
        • Haptics
        • Camera
        • TouchSticks
        • Gyroscope
        • Utilities
      • Triggers
        • Touch Gestures
      • Conditions
      • Components
      • Prefabs
      • Examples
        • Example 1 Haptics
        • Example 2 Cameras
        • Example 3 Gestures
        • Example 4 Controls
        • Example 5 Steering Wheel/Pedals
        • Example 6 Gyroscope Controls
        • Example 7 Gyroscope Camera
        • Example 8 Utilities
        • Example 9 AutoRun
      • Extras
    • UI Components
      • Canvas Components
        • Canvas Animations
        • 3D Models on a Canvas
        • Video on a Canvas
      • Animating UI Elements
        • Cross Fade Elements
        • Slide Elements
        • Shake UI Element
        • Tooltips
      • Text Mesh Pro & uGUI Text
      • Colour Picker Component
      • Mini Map Component
        • MiniMap QuickStart
        • Fullscreen Map
        • Adding Markers
        • Adding Labels
      • System Info Panel
        • SysInfo Quickstart
        • Using SysInfo Toggle
      • Main Menu Templates
        • Customising the Prefabs
        • Load/Save System
        • Comic Strip Example
    • Developer Tools
      • Time Manager
        • Actions & Conditions
      • Waypoint System
      • Click to Spawn Objects
      • In-Game Console
      • In-Game Screen Capture
    • Turn Based Module
    • VR Module GC1
  • Assets for Unity
    • Developer Tools for Unity
      • Click to Spawn
      • In-Game Screen Capture
      • In-Game Console
    • Mini Map System
      • MiniMap Quickstart
      • Map Parameters
      • Adding Makers
  • Tutorials
    • Tutorials for Game Creator 1
      • Installing and Updating Modules
      • Adding Actions to the Button Bar
      • Changing the Graphics for TouchStick
      • Adding Passwords to Player Actions
      • Using the Colour Picker with Variables
      • Creating a 3D Inspection Panel for Game Objects
      • Customising the UI MiniMap
      • Creating a toggle for the SysInfo Panel
      • Simple Player Run on Left Shift Down
      • Pan Follow Camera with Keyboard
    • Tutorials for Unity
  • ANNEX
    • Roadmap
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Assets for Game Creator 1
  2. Mobile Components
  3. Actions

Camera

PreviousHapticsNextTouchSticks

Last updated 4 years ago

Was this helpful?

All Mobile phones have Cameras, usually a Front and a Rear Camera. This set of Action does not create an Augmented reality app where virtual Objects are placed in the real world, but allows the camera view to be placed on a Surface, thereby placing Real World objects in a Virtual World.

The following Actions have been included in the Asset.

Action Name

Description

Start Webcam

This Actions adds a camera view to a Texture surface

Show Webcam

Starts the Camera View on a Texture surface

Stop Webcam

Stops the Camera View on a Texture surface

Set Adv Camera Sensitivity

Sets the sensitivity needed for Camera Touchsticks

Set Fps Camera Sensitivity

Sets the sensitivity needed for Camera Touchsticks

Zoom Adventure Camera

Zooms the Adv Camera when used with Touch Triggers

The Start, Show and Stop Webcam Actions allow for the use of Front or Rear Cameras on a Mobile, and a Desktop Webcam when run a a Desktop or Laptop computer. This is selected from the dropdown in the Action. The Target Object is any object with a Mesh, usually a Plane. The Action will automatically create a WebCamTexture on the Object.

For more information on Webcam Actions, see

The two Actions for Camera Sensitivity are used to set the amount of drag needed top move the Adventure and First Person Camera on a Mobile device. They can be used to adjust the drag when defaulting to the touch drag of Game Creator, and are needed when a Touchstick for Camera is used. The sensitivity can be set from a Slider in the Inspector or can be set from a Game Creator Variable.

The final Action in this section is Adventure Camera Zoom. This Action has been created to allow for Zooming the Adventure Camera when using touch gestures such as Pinch In and Pinch Out.

The sensitivity of the Zoom can be set using the Slider and the values are from 0.1 to 1.0. If Zoom In check box is NOT checked, the Camera will Zoom Out. To use this Action, create a Trigger and add the On Pinch Trigger, selecting the required direction and area of the screen.

The above image shows an On Pinch trigger, for a Pinch Inwards gesture within the middle half of the screen.

When using a Camera Touchstick, set the sensitivity to the maximum of 100. For more information on Sensitivity Actions, see

For more information on Zoom Actions and Pinch Triggers, see

Example 4 - Controls.
Example 3 - Gestures.
Example 2 - Cameras.