예제 #1
0
        public static bool GetLocationBounds(string scene, string name, out Bounds bounds)
        {
            LocationDefenition location = GetLocation(scene, name);

            if (location == null)
            {
                bounds = new Bounds();
                return(false);
            }
            bounds = location.GetBounds();
            return(true);
        }
예제 #2
0
        public static bool GetLocationTransform(string scene, string name, out MiniTransform transform)
        {
            LocationDefenition location = GetLocation(scene, name);

            if (location == null)
            {
                transform = new MiniTransform(Vector3.zero);
                return(false);
            }
            transform = location.GetTransform();
            return(true);
        }