Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Help Wanted 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:
    71
    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.
unityunity