protected override void CreateTempComponent(EditableObject target) { if (target == null) { return; } RefreshVertexSculptSupport(target); if (!m_LikelyToSupportVertexSculpt) { return; } OverlayRenderer ren = target.gameObjectAttached.AddComponent <OverlayRenderer>(); ren.SetMesh(target.editMesh); ren.fullColor = s_FullStrengthColor; ren.gradient = s_BrushGradientColor; ren.vertexBillboardSize = s_VertexBillboardSize; EditableObjectData data; if (!m_EditableObjectsData.TryGetValue(target, out data)) { data = new EditableObjectData(); m_EditableObjectsData.Add(target, data); } data.TempComponent = ren; }
protected override void CreateTempComponent(EditableObject target) { RefreshVertexSculptSupport(target); if (!likelyToSupportVertexSculpt) { return; } OverlayRenderer ren = target.gameObjectAttached.AddComponent <OverlayRenderer>(); ren.SetMesh(target.editMesh); ren.fullColor = s_FullStrengthColor; ren.gradient = s_BrushGradientColor; ren.vertexBillboardSize = s_VertexBillboardSize; tempComponent = ren; }