Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Access size of image marker

Discussion in 'Unity MARS' started by cam415, Jul 19, 2020.

  1. cam415


    Mar 26, 2014
    Hi again,
    How do I access the size variables of an image marker? My prototype images are much smaller than my final images so I would like a way be able to easily switch between sizes through a custom script.

    Attached Files:

  2. unity_andrewm


    Unity Technologies

    Jun 25, 2015
    Hi Cam,

    If you are interested in reading the size of a detected image, see this thread:

    Reading bounds/size from an image marker is the same as reading it from any other proxy.

    If you are looking for an editor-time switch of image markers, I would recommend you just set up multiple image marker libraries (that can each have their own images defined at specified sizes) and switch which one is active.
    cam415 likes this.