protected override void replace(SearchJob job, SerializedProperty prop, SearchResult result)
        {
#if PSR_FULL
            Vector2 v2 = prop.vector2Value;
            v2.x = xField.Replace(v2.x);
            v2.y = yField.Replace(v2.y);
            prop.vector2Value    = v2;
            result.replaceStrRep = v2.ToString();
#endif
        }
        protected override void replace(SearchJob job, SerializedProperty prop, SearchResult result)
        {
#if PSR_FULL
            Vector3 v3 = prop.vector3Value;
            v3.x = xField.Replace(v3.x);
            v3.y = yField.Replace(v3.y);
            v3.z = zField.Replace(v3.z);
            prop.vector3Value    = v3;
            result.replaceStrRep = v3.ToString();
#endif
        }
        protected override void replace(SearchJob job, SerializedProperty prop, SearchResult result)
        {
#if PSR_FULL
            Rect rect = prop.rectValue;
            rect.x               = xField.Replace(rect.x);
            rect.y               = yField.Replace(rect.y);
            rect.width           = wField.Replace(rect.width);
            rect.height          = hField.Replace(rect.height);
            prop.rectValue       = rect;
            result.replaceStrRep = rect.ToString();
#endif
        }
        protected override void replace(SearchJob job, SerializedProperty prop, SearchResult result)
        {
#if PSR_FULL
            Quaternion q2 = prop.quaternionValue;
            q2.x = xField.Replace(q2.x);
            q2.y = yField.Replace(q2.y);
            q2.z = zField.Replace(q2.z);
            q2.w = wField.Replace(q2.w);
            prop.quaternionValue = q2;
            result.replaceStrRep = q2.ToString();
#endif
        }
Exemple #5
0
        protected override void replace(SearchJob job, SerializedProperty prop, SearchResult result)
        {
#if PSR_FULL
            Vector4 v4 = prop.vector4Value;
            v4.x = xField.Replace(v4.x);
            v4.y = yField.Replace(v4.y);
            v4.z = zField.Replace(v4.z);
            v4.w = wField.Replace(v4.w);
            prop.vector4Value    = v4;
            result.replaceStrRep = v4.ToString();
#endif
        }