Exemple #1
0
    public void OnSceneGUI()
    {
        DepthScaler scaler = target as DepthScaler;

        if (!scaler)
        {
            return;
        }

        scaler.updateDepthRatio();
    }
Exemple #2
0
    public override void OnInspectorGUI()
    {
        base.DrawDefaultInspector();

        DepthScaler scaler = target as DepthScaler;

        if (!scaler)
        {
            return;
        }

        scaler.updateDepthRatio();
    }