Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'Ambiguous reference' error
#3
I have the latest Curvy but still the same error
also unity 2018.3

do I only need to adjust the cs code in the MinDrawer.cs? or anywhere else?
Could you tell me where to change the code?
ps love Curvy (obvious without the bug)

in my code: MinDrawer.cs I have the following code:

using UnityEngine;
using UnityEngine.PostProcessing;

namespace UnityEditor.PostProcessing
{
[CustomPropertyDrawer(typeof(MinAttribute))]
sealed class MinDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
MinAttribute attribute = (MinAttribute)base.attribute;

if (property.propertyType == SerializedPropertyType.Integer)
{
int v = EditorGUI.IntField(position, label, property.intValue);
property.intValue = (int)Mathf.Max(v, attribute.min);
}
else if (property.propertyType == SerializedPropertyType.Float)
{
float v = EditorGUI.FloatField(position, label, property.floatValue);
property.floatValue = Mathf.Max(v, attribute.min);
}
else
{
EditorGUI.LabelField(position, label.text, "Use Min with float or int.");
}
}
}
}
Reply


Messages In This Thread
'Ambiguous reference' error - by TenaciousLibbs - 12-27-2018, 11:16 PM
RE: 'Ambiguous reference' error - by _Aka_ - 12-28-2018, 09:53 AM
RE: 'Ambiguous reference' error - by Koen Laan - 01-16-2019, 09:11 AM
RE: 'Ambiguous reference' error - by _Aka_ - 01-16-2019, 10:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting reference to Generator and InputSplinePath Spline velikizlivuk 3 9 08-15-2023, 11:08 PM
Last Post: velikizlivuk
  Error when trying to connect nodes in prefab edit mode Lupos 4 9 06-02-2023, 10:27 AM
Last Post: _Aka_
  Error when switching splines ricke 3 7 10-10-2022, 08:46 AM
Last Post: _Aka_
  Error when recreating splines / connections jh092 3 7 07-25-2022, 09:58 AM
Last Post: _Aka_

Forum Jump: