Exemplo n.º 1
0
    public void OnSceneGUI()
    {
        DepthScaler scaler = target as DepthScaler;

        if (!scaler)
        {
            return;
        }

        scaler.updateDepthRatio();
    }
Exemplo n.º 2
0
    public override void OnInspectorGUI()
    {
        base.DrawDefaultInspector();

        DepthScaler scaler = target as DepthScaler;

        if (!scaler)
        {
            return;
        }

        scaler.updateDepthRatio();
    }