public void OnSceneGUI() { DepthScaler scaler = target as DepthScaler; if (!scaler) { return; } scaler.updateDepthRatio(); }
public override void OnInspectorGUI() { base.DrawDefaultInspector(); DepthScaler scaler = target as DepthScaler; if (!scaler) { return; } scaler.updateDepthRatio(); }