コード例 #1
0
        /// <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;
        }
コード例 #2
0
        /// <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;
        }
コード例 #3
0
        /// <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;
        }
コード例 #4
0
        /// <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;
        }
コード例 #5
0
 /// <inheritdoc/>
 public bool Equals(IOutlineSettings other)
 {
     return(OutlineSettings.Equals(_outlineSettings, other));
 }
コード例 #6
0
 /// <inheritdoc/>
 public override bool Equals(object other)
 {
     return(OutlineSettings.Equals(this, other as IOutlineSettings));
 }
コード例 #7
0
 private void OnEnable()
 {
     _settings = (OutlineSettings)target;
 }
コード例 #8
0
 public void Init()
 {
     _settings = ScriptableObject.CreateInstance <OutlineSettings>();
     Init(_settings);
 }