It looks like your class myConstructorName inherits from ScriptableObject. All classes of this type must be created using the CreateInstance() method mentioned by your warning. You cannot have a custom constructor. ScriptableObjects are mostly data-storage classes that serialize data like MonoBehaviours, but don’t live on GameObjects. You can fill in the data after instantiation however you like (a custom Init() method, public fields or properties, etc…), but you can’t use the new keyword with a ScriptableObject just like you can’t use it with a MonoBehaviour.