Example #1
0
 public bool TryGet([NotNull] string uriString, out Info <Texture2D> info)
 {
     return(TryGet(uriString, textures, negTextures, out info));
 }
Example #2
0
        public DisplaysType()
        {
            var assetHolder    = UnityEngine.Resources.Load <GameObject>("Asset Holder").GetComponent <AssetHolder>();
            var appAssetHolder = UnityEngine.Resources.Load <GameObject>("App Asset Holder").GetComponent <AppAssetHolder>();

            try
            {
                Cube                         = new Info <GameObject>(assetHolder.Cube);
                Cylinder                     = new Info <GameObject>(assetHolder.Cylinder);
                Sphere                       = new Info <GameObject>(assetHolder.Sphere);
                Text                         = new Info <GameObject>(assetHolder.Text);
                LineConnector                = new Info <GameObject>(appAssetHolder.LineConnector);
                BoundaryFrame                = new Info <GameObject>(appAssetHolder.BoundaryFrame);
                Arrow                        = new Info <GameObject>(appAssetHolder.Arrow);
                MeshList                     = new Info <GameObject>(assetHolder.MeshList);
                PointList                    = new Info <GameObject>(assetHolder.PointList);
                MeshTriangles                = new Info <GameObject>(assetHolder.MeshTriangles);
                TfFrame                      = new Info <GameObject>(appAssetHolder.TFFrame);
                Image                        = new Info <GameObject>(appAssetHolder.Image);
                Square                       = new Info <GameObject>(assetHolder.Plane);
                Line                         = new Info <GameObject>(assetHolder.Line);
                Grid                         = new Info <GameObject>(appAssetHolder.Grid);
                DepthImageResource           = new Info <GameObject>(appAssetHolder.DepthImage);
                OccupancyGridResource        = new Info <GameObject>(appAssetHolder.OccupancyGrid);
                RadialScanResource           = new Info <GameObject>(appAssetHolder.RadialScan);
                ARMarkerResource             = new Info <GameObject>(appAssetHolder.ARMarkerResource);
                AxisFrame                    = new Info <GameObject>(appAssetHolder.AxisFrame);
                AngleAxis                    = new Info <GameObject>(appAssetHolder.AngleAxis);
                Trail                        = new Info <GameObject>(appAssetHolder.Trail);
                InteractiveControl           = new Info <GameObject>(appAssetHolder.InteractiveControl);
                GridMap                      = new Info <GameObject>(appAssetHolder.GridMap);
                OccupancyGridTextureResource = new Info <GameObject>(appAssetHolder.OccupancyGridTexture);

                ARDialog            = new Info <GameObject>(appAssetHolder.ARDialog);
                ARDialogIcon        = new Info <GameObject>(appAssetHolder.ARDialogIcon);
                ARDialogMenu        = new Info <GameObject>(appAssetHolder.ARDialogMenu);
                ARDialogShort       = new Info <GameObject>(appAssetHolder.ARDialogShort);
                ARTfFrame           = new Info <GameObject>(appAssetHolder.ARTfFrame);
                ARDialogNotice      = new Info <GameObject>(appAssetHolder.ARDialogNotice);
                ARButtonDialog      = new Info <GameObject>(appAssetHolder.ARButtonDialog);
                ARMarkerHighlighter = new Info <GameObject>(appAssetHolder.ARMarkerHighlighter);

                RotationDisc   = new Info <GameObject>(appAssetHolder.RotationDisc);
                SpringDisc     = new Info <GameObject>(appAssetHolder.SpringDisc);
                SpringDisc3D   = new Info <GameObject>(appAssetHolder.SpringDisc3D);
                TrajectoryDisc = new Info <GameObject>(appAssetHolder.TrajectoryDisc);
                Tooltip        = new Info <GameObject>(appAssetHolder.Tooltip);
                TargetArea     = new Info <GameObject>(appAssetHolder.TargetArea);
                PositionDisc3D = new Info <GameObject>(appAssetHolder.PositionDisc3D);
                PositionDisc   = new Info <GameObject>(appAssetHolder.PositionDisc);

                ClickedPoseHighlighter = new Info <GameObject>(appAssetHolder.ClickedPoseHighlighter);
                TfFrameHighlighter     = new Info <GameObject>(appAssetHolder.TfFrameHighlighter);

                RoundedPlane = new Info <GameObject>(appAssetHolder.RoundedPlane);

                resourceByType = CreateTypeDictionary(this);
            }
            catch (NullReferenceException)
            {
                Debug.LogError("DisplaysType: Missing at least one asset!");
            }
        }
Example #3
0
 public bool TryGet([NotNull] string uriString, out Info <GameObject> info)
 {
     return(TryGet(uriString, gameObjects, negGameObjects, out info));
 }