You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Tooltip("Scale of the movement \"cells\", i.e. the larger the number, the smaller the movement waves.")][SerializeField]privateVector2scale=new(0.002f,0.002f);
Whenever I edit the values in the inspector, it shows the following error:
Unsupported type Vector2f
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
I am using unity 2021.3.27f1, NaughtyAttributes 2.4.1 from the asset store.
Code context here, all the Vector2 attributes produce the error.
publicclassKelpShaderSettings:MonoBehaviour{[Tooltip("Hue color to apply to all child sprite renderers. Used to uniformly color the whole plant.")][ColorUsage(true)][SerializeField]privateColorhue=Color.white;[Tooltip("Speed of the wave movement, higher means faster.")][NaughtyAttributes.InfoBox("Leaf Settings")][SerializeField]privatefloatspeed=1f;[Tooltip("Scale of the movement \"cells\", i.e. the larger the number, the smaller the movement waves.")][SerializeField]privateVector2scale=new(0.002f,0.002f);[Tooltip("Strength of movement in every direction")][SerializeField]privatefloatstrength=0.5f;[Tooltip("This determines how sharp the movement is cutoff when closing on the leaf mount point. The lower, the smoother the cutoff. (Value determines exponent of the falloff function)")][SerializeField]privatefloatmovementFalloff=1f;[Tooltip("The magnitude of movement for the cardinal directions. x makes it move more left to right. y more up and down")][SerializeField]privateVector2direction=new(100f,100f);[Tooltip("Time offset range. When updating leaf settings for each one a random number in this range is chosen and applied. This makes the leaves move more independent.")][MinMaxSlider(-50,50)][SerializeField]privateVector2InttimeOffsetRange=new(-1,1);[NaughtyAttributes.InfoBox("Stem Settings")][Tooltip("Speed of the stem movement. The higher, the faster.")][SerializeField]privatefloatstemSpeed=1.3f;[Tooltip("Scale of the waves, lower means larger wave.")][SerializeField]privateVector2stemScale=new(0.002f,0.002f);[Tooltip("Magnitude of movement in all directions")][SerializeField]privatefloatstemStrength=1.9f;[Tooltip("This determines how sharp the movement is cutoff when closing on the stem mount point, i.e. the bottom. The lower, the smoother the cutoff. (Value determines exponent of the falloff function)")][SerializeField]privatefloatstemMovementFalloff=1f;[Tooltip("The magnitude of movement for the cardinal directions. x makes it move more left to right. y more up and down")][SerializeField]privateVector2stemDirection=new(100f,10f);[Tooltip("The y coordinate of the stem mount point. Internally used to adjust the movement.")][ReadOnly][SerializeField]floatstemYPosition=0f;privateList<SpriteRenderer>renderers;privateRandomrng;voidAwake(){
...
The text was updated successfully, but these errors were encountered:
rk-exxec
changed the title
Error "Unsupported type Vector2f" when editing Vector2 value in inspector
[Bug] Error "Unsupported type Vector2f" when editing Vector2 value in inspector
Jun 24, 2023
I have this code snippet in one of my scripts:
Whenever I edit the values in the inspector, it shows the following error:
I am using unity 2021.3.27f1, NaughtyAttributes 2.4.1 from the asset store.
Code context here, all the Vector2 attributes produce the error.
The text was updated successfully, but these errors were encountered: