Esempio n. 1
0
    protected override void OnEnable()
    {
        polygon = (Polygon)target;

        rectTransform        = polygon.rectTransform;
        pointListsProperties = polygon.PointListsProperties;

        materialProp      = serializedObject.FindProperty("m_Material");
        raycastTargetProp = serializedObject.FindProperty("m_RaycastTarget");

        shapePropertiesProp        = serializedObject.FindProperty("ShapeProperties");
        pointListPropertiesProp    = serializedObject.FindProperty("PointListsProperties");
        polygonPropertiesProp      = serializedObject.FindProperty("PolygonProperties");
        shadowPropertiesProp       = serializedObject.FindProperty("ShadowProperties");
        antiAliasingPropertiesProp = serializedObject.FindProperty("AntiAliasingProperties");
    }
Esempio n. 2
0
    protected override void OnEnable()
    {
        linearLine = (Line)target;

        rectTransform        = linearLine.rectTransform;
        pointListsProperties = linearLine.PointListsProperties;

        materialProp      = serializedObject.FindProperty("m_Material");
        spriteProp        = serializedObject.FindProperty("Sprite");
        raycastTargetProp = serializedObject.FindProperty("m_RaycastTarget");

        shapePropertiesProp          = serializedObject.FindProperty("ShapeProperties");
        pointListPropertiesProp      = serializedObject.FindProperty("PointListsProperties");
        linePropertiesPropertiesProp = serializedObject.FindProperty("LineProperties");
        outlinePropertiesProp        = serializedObject.FindProperty("OutlineProperties");
        shadowPropertiesProp         = serializedObject.FindProperty("ShadowProperties");
        antiAliasingPropertiesProp   = serializedObject.FindProperty("AntiAliasingProperties");
    }