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

    cam415

    Joined:
    Mar 26, 2014
    Posts:
    45
    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_andrewm

    Unity Technologies

    Joined:
    Jun 25, 2015
    Posts:
    73
    Hi Cam,

    If you are interested in reading the size of a detected image, see this thread:
    https://forum.unity.com/threads/how-to-access-plane-data.932682/

    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.