/// <summary> /// Shares <see cref="OutlineLayers"/> with another <see cref="OutlineEffect"/> instance. /// </summary> /// <param name="other">Effect to share <see cref="OutlineLayers"/> with.</param> /// <seealso cref="OutlineLayers"/> public void ShareLayersWith(OutlineEffect other) { if (other) { CreateLayersIfNeeded(); other._outlineLayers = _outlineLayers; } }
/// <summary> /// Shares <see cref="OutlineLayers"/> with another <see cref="OutlineEffect"/> instance. /// </summary> /// <param name="other">Effect to share <see cref="OutlineLayers"/> with.</param> /// <seealso cref="OutlineLayers"/> public void ShareLayersWith(OutlineEffect other) { if (other) { if (_outlineLayers == null) { _outlineLayers = ScriptableObject.CreateInstance <OutlineLayerCollection>(); } other._outlineLayers = _outlineLayers; other._changed = true; } }
private void OnEnable() { _effect = (OutlineEffect)target; }