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
  Null Reference Exception rickgplus 1 1,665 03-01-2025, 02:09 PM
Last Post: _Aka_
  playmaker integration error DNeville 5 3,803 05-23-2024, 07:01 AM
Last Post: _Aka_
  Getting reference to Generator and InputSplinePath Spline velikizlivuk 3 2,583 08-15-2023, 11:08 PM
Last Post: velikizlivuk
  Error when trying to connect nodes in prefab edit mode Lupos 4 2,838 06-02-2023, 10:27 AM
Last Post: _Aka_

Forum Jump: