Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Dx11Support' is not a member of ""

Discussion in 'Editor & General Support' started by IsolatedPurity, Jul 22, 2013.

  1. IsolatedPurity

    IsolatedPurity

    Joined:
    Jul 22, 2013
    Posts:
    6
    Hello, so I am still learning Unity and a total noob. Current I am using Unity Pro and I have enabled DX11 useage in the Player Settings but I am getting this error message for the first time after multiple play tests and I am trying to figure out what I did. Any advice would be very helpful to this noob.

    Assets/Editor/Image Effects/CameraMotionBlurEditor.js(56,73): BCE0019: 'Dx11Support' is not a member of 'CameraMotionBlur'.
    Assets/Editor/Image Effects/DepthOfFieldScatterEditor.js(70,44): BCE0019: 'Dx11Support' is not a member of 'DepthOfFieldScatter'.
    Assets/Editor/Image Effects/NoiseAndGrainEditor.js(55,70): BCE0019: 'Dx11Support' is not a member of 'NoiseAndGrain'.


    I havent made any changes to these scripts so I have no idea what happened.

    Code (csharp):
    1.    
    2. #pragma strict
    3.  
    4. @CustomEditor (CameraMotionBlur)
    5. class CameraMotionBlurEditor extends Editor
    6. {  
    7.     var serObj : SerializedObject; 
    8.        
    9.   var filterType : SerializedProperty;
    10.   var preview : SerializedProperty;
    11.   var previewScale : SerializedProperty;
    12.   var movementScale : SerializedProperty;
    13.   var rotationScale : SerializedProperty;
    14.   var maxVelocity : SerializedProperty;
    15.   var minVelocity : SerializedProperty;
    16.   var maxNumSamples : SerializedProperty;
    17.   var velocityScale : SerializedProperty;
    18.   var velocityDownsample : SerializedProperty;
    19.   var noiseTexture : SerializedProperty;
    20.   var showVelocity : SerializedProperty;
    21.   var showVelocityScale : SerializedProperty;
    22.   var excludeLayers : SerializedProperty;
    23.   //var dynamicLayers : SerializedProperty;
    24.  
    25.     function OnEnable () {
    26.         serObj = new SerializedObject (target);
    27.        
    28.     filterType = serObj.FindProperty ("filterType");
    29.  
    30.     preview = serObj.FindProperty ("preview");
    31.     previewScale = serObj.FindProperty ("previewScale");
    32.  
    33.     movementScale = serObj.FindProperty ("movementScale");
    34.     rotationScale = serObj.FindProperty ("rotationScale");
    35.  
    36.     maxVelocity = serObj.FindProperty ("maxVelocity");
    37.     minVelocity = serObj.FindProperty ("minVelocity");
    38.  
    39.     maxNumSamples = serObj.FindProperty ("maxNumSamples");
    40.  
    41.     excludeLayers = serObj.FindProperty ("excludeLayers");
    42.     //dynamicLayers = serObj.FindProperty ("dynamicLayers");
    43.  
    44.     velocityScale = serObj.FindProperty ("velocityScale");
    45.     velocityDownsample = serObj.FindProperty ("velocityDownsample");
    46.  
    47.     noiseTexture = serObj.FindProperty ("noiseTexture");
    48.     }
    49.            
    50.   function OnInspectorGUI () {        
    51.     serObj.Update ();
    52.                    
    53.     EditorGUILayout.LabelField("Simulates camera based motion blur", EditorStyles.miniLabel);
    54.  
    55.     EditorGUILayout.PropertyField (filterType, new GUIContent("Technique"));   
    56.     if (filterType.enumValueIndex == 3  !(target as CameraMotionBlur).Dx11Support()) {
    57.       EditorGUILayout.HelpBox("DX11 mode not supported (need shader model 5)", MessageType.Info);      
    58.     }          
    59.     EditorGUILayout.PropertyField (velocityScale, new GUIContent(" Velocity Scale"));  
    60.     if(filterType.enumValueIndex >= 2) {
    61.       EditorGUILayout.LabelField(" Tile size used during reconstruction filter:", EditorStyles.miniLabel);      
    62.       EditorGUILayout.PropertyField (maxVelocity, new GUIContent("  Velocity Max"));  
    63.     }
    64.     else
    65.       EditorGUILayout.PropertyField (maxVelocity, new GUIContent(" Velocity Max"));      
    66.     EditorGUILayout.PropertyField (minVelocity, new GUIContent(" Velocity Min"));  
    67.  
    68.     EditorGUILayout.Separator ();
    69.  
    70.     EditorGUILayout.LabelField("Technique Specific");
    71.  
    72.     if(filterType.enumValueIndex == 0) {
    73.       // portal style motion blur
    74.       EditorGUILayout.PropertyField (rotationScale, new GUIContent(" Camera Rotation"));
    75.       EditorGUILayout.PropertyField (movementScale, new GUIContent(" Camera Movement"));
    76.     }
    77.     else {
    78.       // "plausible" blur or cheap, local blur
    79.       EditorGUILayout.PropertyField (excludeLayers, new GUIContent(" Exclude Layers"));
    80.       EditorGUILayout.PropertyField (velocityDownsample, new GUIContent(" Velocity Downsample"));
    81.       velocityDownsample.intValue = velocityDownsample.intValue < 1 ? 1 : velocityDownsample.intValue;
    82.       if(filterType.enumValueIndex >= 2) // only display jitter for reconstruction
    83.         EditorGUILayout.PropertyField (noiseTexture, new GUIContent(" Sample Jitter"));
    84.       if(filterType.enumValueIndex > 2) { // DX11
    85.           maxNumSamples.intValue = EditorGUILayout.IntSlider (" Max Sample Count", maxNumSamples.intValue, 6, 32);
    86.       }
    87.     }
    88.  
    89.     EditorGUILayout.Separator ();
    90.  
    91.     EditorGUILayout.PropertyField (preview, new GUIContent("Preview"));
    92.     if (preview.boolValue)
    93.       EditorGUILayout.PropertyField (previewScale, new GUIContent(" Preview Scale"));    
    94.            
    95.     serObj.ApplyModifiedProperties();
    96.     }
    97. }
    98.  
    Code (csharp):
    1.  
    2. #pragma strict
    3.  
    4. @CustomEditor ( NoiseAndGrain)
    5.        
    6. class NoiseAndGrainEditor extends Editor
    7. {  
    8.     var serObj : SerializedObject;
    9.  
    10.     var intensityMultiplier : SerializedProperty;
    11.     var generalIntensity : SerializedProperty;
    12.     var blackIntensity : SerializedProperty;
    13.     var whiteIntensity : SerializedProperty;
    14.     var midGrey : SerializedProperty;
    15.  
    16.     var dx11Grain : SerializedProperty;
    17.     var softness : SerializedProperty;
    18.     var monochrome : SerializedProperty;
    19.  
    20.     var intensities : SerializedProperty;
    21.     var tiling : SerializedProperty;
    22.     var monochromeTiling : SerializedProperty;
    23.  
    24.     var noiseTexture : SerializedProperty;
    25.     var filterMode : SerializedProperty;
    26.  
    27.     function OnEnable () {
    28.         serObj = new SerializedObject (target);
    29.  
    30.         intensityMultiplier = serObj.FindProperty("intensityMultiplier");
    31.         generalIntensity = serObj.FindProperty("generalIntensity");
    32.         blackIntensity = serObj.FindProperty("blackIntensity");
    33.         whiteIntensity = serObj.FindProperty("whiteIntensity");
    34.         midGrey = serObj.FindProperty("midGrey");
    35.  
    36.         dx11Grain = serObj.FindProperty("dx11Grain");
    37.         softness = serObj.FindProperty("softness");
    38.         monochrome = serObj.FindProperty("monochrome");
    39.  
    40.         intensities = serObj.FindProperty("intensities");
    41.         tiling = serObj.FindProperty("tiling");
    42.         monochromeTiling = serObj.FindProperty("monochromeTiling");
    43.  
    44.         noiseTexture = serObj.FindProperty("noiseTexture");
    45.         filterMode = serObj.FindProperty("filterMode");
    46.     }
    47.            
    48.     function OnInspectorGUI () {        
    49.         serObj.Update();
    50.  
    51.         EditorGUILayout.LabelField("Overlays animated noise patterns", EditorStyles.miniLabel);
    52.  
    53.         EditorGUILayout.PropertyField(dx11Grain, new GUIContent("DirectX 11 Grain"));
    54.  
    55.         if(dx11Grain.boolValue  !(target as NoiseAndGrain).Dx11Support()) {
    56.             EditorGUILayout.HelpBox("DX11 mode not supported (need shader model 5)", MessageType.Info);        
    57.         }
    58.  
    59.         EditorGUILayout.PropertyField(monochrome, new GUIContent("Monochrome"));
    60.  
    61.         EditorGUILayout.Separator();
    62.  
    63.         EditorGUILayout.PropertyField(intensityMultiplier, new GUIContent("Intensity Multiplier"));
    64.         EditorGUILayout.PropertyField(generalIntensity, new GUIContent(" General"));
    65.         EditorGUILayout.PropertyField(blackIntensity, new GUIContent(" Black Boost"));
    66.         EditorGUILayout.PropertyField(whiteIntensity, new GUIContent(" White Boost"));
    67.         midGrey.floatValue = EditorGUILayout.Slider( new GUIContent(" Mid Grey (for Boost)"), midGrey.floatValue, 0.0f, 1.0f);
    68.         if(monochrome.boolValue == false) {
    69.             var c : Color = new Color(intensities.vector3Value.x,intensities.vector3Value.y,intensities.vector3Value.z,1.0f);
    70.             c = EditorGUILayout.ColorField(new GUIContent(" Color Weights"), c);
    71.             intensities.vector3Value.x = c.r;
    72.             intensities.vector3Value.y = c.g;
    73.             intensities.vector3Value.z = c.b;
    74.         }      
    75.  
    76.         if(!dx11Grain.boolValue) {
    77.             EditorGUILayout.Separator();
    78.  
    79.             EditorGUILayout.LabelField("Noise Shape");
    80.             EditorGUILayout.PropertyField(noiseTexture, new GUIContent(" Texture"));
    81.             EditorGUILayout.PropertyField(filterMode, new GUIContent(" Filter"));
    82.         }
    83.         else {
    84.             EditorGUILayout.Separator();
    85.             EditorGUILayout.LabelField("Noise Shape");
    86.         }
    87.  
    88.         softness.floatValue = EditorGUILayout.Slider( new GUIContent(" Softness"),softness.floatValue, 0.0f, 0.99f);
    89.  
    90.         if(!dx11Grain.boolValue) {
    91.             EditorGUILayout.Separator();
    92.             EditorGUILayout.LabelField("Advanced");
    93.  
    94.             if(monochrome.boolValue == false) {
    95.                 tiling.vector3Value.x = EditorGUILayout.FloatField(new GUIContent(" Tiling (Red)"), tiling.vector3Value.x);
    96.                 tiling.vector3Value.y = EditorGUILayout.FloatField(new GUIContent(" Tiling (Green)"), tiling.vector3Value.y);
    97.                 tiling.vector3Value.z = EditorGUILayout.FloatField(new GUIContent(" Tiling (Blue)"), tiling.vector3Value.z);
    98.             }
    99.             else {
    100.                 EditorGUILayout.PropertyField(monochromeTiling, new GUIContent(" Tiling"));
    101.             }
    102.         }
    103.        
    104.         serObj.ApplyModifiedProperties();
    105.     }
    106. }
    107.  
    Code (csharp):
    1.  
    2. #pragma strict
    3.  
    4. @CustomEditor (DepthOfFieldScatter)
    5. class DepthOfFieldScatterEditor extends Editor
    6. {  
    7.     var serObj : SerializedObject; 
    8.        
    9.   var visualizeFocus : SerializedProperty;
    10.   var focalLength : SerializedProperty;
    11.   var focalSize : SerializedProperty;
    12.   var aperture : SerializedProperty;
    13.   var focalTransform : SerializedProperty;
    14.   var maxBlurSize : SerializedProperty;
    15.   var highResolution : SerializedProperty;
    16.  
    17.   var blurType : SerializedProperty;
    18.   var blurSampleCount : SerializedProperty;
    19.  
    20.   var nearBlur : SerializedProperty;
    21.   var foregroundOverlap : SerializedProperty;
    22.  
    23.   var dx11BokehThreshhold : SerializedProperty;
    24.   var dx11SpawnHeuristic : SerializedProperty;
    25.   var dx11BokehTexture : SerializedProperty;
    26.   var dx11BokehScale : SerializedProperty;
    27.   var dx11BokehIntensity : SerializedProperty;
    28.  
    29.     function OnEnable () {
    30.         serObj = new SerializedObject (target);
    31.        
    32.     visualizeFocus = serObj.FindProperty ("visualizeFocus");
    33.  
    34.     focalLength = serObj.FindProperty ("focalLength");
    35.     focalSize = serObj.FindProperty ("focalSize");
    36.     aperture = serObj.FindProperty ("aperture");
    37.     focalTransform = serObj.FindProperty ("focalTransform");
    38.     maxBlurSize = serObj.FindProperty ("maxBlurSize");
    39.     highResolution = serObj.FindProperty ("highResolution");
    40.    
    41.     blurType = serObj.FindProperty ("blurType");
    42.     blurSampleCount = serObj.FindProperty ("blurSampleCount");
    43.  
    44.     nearBlur = serObj.FindProperty ("nearBlur");
    45.     foregroundOverlap = serObj.FindProperty ("foregroundOverlap");    
    46.  
    47.     dx11BokehThreshhold = serObj.FindProperty ("dx11BokehThreshhold");
    48.     dx11SpawnHeuristic = serObj.FindProperty ("dx11SpawnHeuristic");
    49.     dx11BokehTexture = serObj.FindProperty ("dx11BokehTexture");
    50.     dx11BokehScale = serObj.FindProperty ("dx11BokehScale");
    51.     dx11BokehIntensity = serObj.FindProperty ("dx11BokehIntensity");
    52.     }
    53.            
    54.     function OnInspectorGUI () {        
    55.         serObj.Update ();
    56.                        
    57.       EditorGUILayout.LabelField("Simulates camera lens defocus", EditorStyles.miniLabel);
    58.  
    59.         GUILayout.Label ("Focal Settings");    
    60.           EditorGUILayout.PropertyField (visualizeFocus, new GUIContent(" Visualize"));        
    61.         EditorGUILayout.PropertyField (focalLength, new GUIContent(" Focal Distance"));
    62.       EditorGUILayout.PropertyField (focalSize, new GUIContent(" Focal Size"));
    63.       EditorGUILayout.PropertyField (focalTransform, new GUIContent(" Focus on Transform"));
    64.         EditorGUILayout.PropertyField (aperture, new GUIContent(" Aperture"));
    65.  
    66.       EditorGUILayout.Separator ();
    67.  
    68.       EditorGUILayout.PropertyField (blurType, new GUIContent("Defocus Type"));      
    69.  
    70.       if (!(target as DepthOfFieldScatter).Dx11Support()  blurType.enumValueIndex>0) {
    71.         EditorGUILayout.HelpBox("DX11 mode not supported (need shader model 5)", MessageType.Info);      
    72.       }      
    73.  
    74.       if(blurType.enumValueIndex<1)
    75.         EditorGUILayout.PropertyField (blurSampleCount, new GUIContent(" Sample Count"));
    76.  
    77.         EditorGUILayout.PropertyField (maxBlurSize, new GUIContent(" Max Blur Distance"));
    78.       EditorGUILayout.PropertyField (highResolution, new GUIContent(" High Resolution"));
    79.      
    80.       EditorGUILayout.Separator ();
    81.  
    82.       EditorGUILayout.PropertyField (nearBlur, new GUIContent("Near Blur"));
    83.       EditorGUILayout.PropertyField (foregroundOverlap, new GUIContent("  Overlap Size"));
    84.  
    85.       EditorGUILayout.Separator ();
    86.  
    87.       if(blurType.enumValueIndex>0) {
    88.         GUILayout.Label ("DX11 Bokeh Settings");         
    89.         EditorGUILayout.PropertyField (dx11BokehTexture, new GUIContent(" Bokeh Texture"));
    90.         EditorGUILayout.PropertyField (dx11BokehScale, new GUIContent(" Bokeh Scale"));
    91.         EditorGUILayout.PropertyField (dx11BokehIntensity, new GUIContent(" Bokeh Intensity"));
    92.         EditorGUILayout.PropertyField (dx11BokehThreshhold, new GUIContent(" Min Luminance"));
    93.         EditorGUILayout.PropertyField (dx11SpawnHeuristic, new GUIContent(" Spawn Heuristic"));
    94.       }
    95.                
    96.         serObj.ApplyModifiedProperties();
    97.     }
    98. }
    99.  
     
  2. IsolatedPurity

    IsolatedPurity

    Joined:
    Jul 22, 2013
    Posts:
    6
    Could really use some help.
     
  3. FrenchToastFella

    FrenchToastFella

    Joined:
    Dec 9, 2013
    Posts:
    7
    If this happened after you've imported a package containing some assets and more image effects, just delete all other packages containing effects, including basic one, and reimport Image Effects (Pro) again.
     
  4. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    475
    what a great tip!