Ejemplo n.º 1
0
    void Awake()
    {
        // start coroutine that checks for screen resize
        StartCoroutine(checkForResize());

        // only one gui draw fase
        useGUILayout = false;

        // setup our lensmodel
        mLensmodel = ScriptableObject.CreateInstance <LensModel>();
        mLensmodel.init(LensModel.LENSMODEL.EQUIRECTANGULAR, Screen.width, Screen.height, 1.0f, 1.0f);

        // setup arcball
        mArcball = ScriptableObject.CreateInstance <ArcBall>();
        mArcball.init(Screen.width, Screen.height, transform.rotation);

        // setup FPS counter
        mFps = ScriptableObject.CreateInstance <FPS>();
    }
Ejemplo n.º 2
0
        public override void Action(int instanceId, string pathName, string resourceFile)
        {
            LensModel model = ModelFactory.CreateLensModelAtPath(pathName);

            ProjectWindowUtil.ShowCreatedAsset(model);
        }