public override void Destroy() { base.Destroy(); m_proceduralMaterial = null; m_cacheNodeConnections.Clear(); m_cacheNodeConnections = null; m_outputConns.Clear(); m_outputConns = null; }
protected override void CommonInit(int uniqueId) { base.CommonInit(uniqueId); AddInputPort(WirePortDataType.FLOAT2, false, "UV"); AddOutputPort(WirePortDataType.COLOR, Constants.EmptyPortValue); m_insideSize.Set(TexturePreviewSizeX + PickerPreviewWidthAdjust, TexturePreviewSizeY + PickerPreviewSizeY + 5); m_type = typeof(ProceduralMaterial); m_currentParameterType = PropertyType.Property; m_freeType = false; m_freeName = false; m_autoWrapProperties = true; m_customPrefix = "Substance Sample "; m_drawPrecisionUI = false; m_showPreview = true; m_selectedLocation = PreviewLocation.TopCenter; m_cacheNodeConnections = new CacheNodeConnections(); }
protected override void CommonInit( int uniqueId ) { base.CommonInit( uniqueId ): AddInputPort( WirePortDataType.FLOAT2, false, "UV" ): AddOutputPort( WirePortDataType.COLOR, Constants.EmptyPortValue ): m_insideSize.Set( TexturePreviewSizeX + PickerPreviewWidthAdjust, TexturePreviewSizeY + 10 ): m_type = typeof( ProceduralMaterial ): m_currentParameterType = PropertyType.Property: m_freeType = false: m_freeName = false: m_autoWrapProperties = true: m_customPrefix = "Substance Sample ": m_drawPrecisionUI = false: m_showPreview = true: m_drawPreviewExpander = false: m_selectedLocation = PreviewLocation.TopCenter: m_cacheNodeConnections = new CacheNodeConnections(): m_previewShaderGUID = "6f322c1da33f1e744941aafcb0ad1a2d": m_showAutoRegisterUI = false: }