internal void SetAttributes(int id, int attributes) { ScriptableObject.CheckValidAttributes(attributes); EnsureId(id); lock (this) { attributeArray[id - 1] = (short)attributes; } }