/// <summary> /// Initializes a new instance of the <see cref="OutlineLayer"/> class. /// </summary> /// <exception cref="ArgumentNullException">Thrown if <paramref name="settings"/> is <see langword="null"/>.</exception> public OutlineLayer(OutlineSettings settings) { if (settings is null) { throw new ArgumentNullException(nameof(settings)); } _settings.OutlineSettings = settings; }
/// <summary> /// Initializes a new instance of the <see cref="OutlineLayer"/> class. /// </summary> /// <exception cref="ArgumentNullException">Thrown if <paramref name="settings"/> is <see langword="null"/>.</exception> public OutlineLayer(OutlineSettings settings) { if (settings == null) { throw new ArgumentNullException("settings"); } _settings.OutlineSettings = settings; }
/// <summary> /// Initializes a new instance of the <see cref="OutlineLayer"/> class. /// </summary> /// <exception cref="ArgumentNullException">Thrown if <paramref name="settings"/> is <see langword="null"/>.</exception> public OutlineLayer(OutlineSettings settings) { if (ReferenceEquals(settings, null)) { throw new ArgumentNullException("settings"); } _settings.OutlineSettings = settings; }
/// <summary> /// Initializes a new instance of the <see cref="OutlineLayer"/> class. /// </summary> /// <exception cref="ArgumentNullException">Thrown if <paramref name="settings"/> is <see langword="null"/>.</exception> public OutlineLayer(string name, OutlineSettings settings) { if (settings == null) { throw new ArgumentNullException("settings"); } _name = name; _settings.OutlineSettings = settings; }
/// <inheritdoc/> public bool Equals(IOutlineSettings other) { return(OutlineSettings.Equals(_outlineSettings, other)); }
/// <inheritdoc/> public override bool Equals(object other) { return(OutlineSettings.Equals(this, other as IOutlineSettings)); }
private void OnEnable() { _settings = (OutlineSettings)target; }
public void Init() { _settings = ScriptableObject.CreateInstance <OutlineSettings>(); Init(_settings); }