- Home /
can't Edit ScrollRect script
Hi, i want to edit The ScrollRect Script. I want to call other stuff in my project when it is start Scrolling.
but i can't. when i press "edit script" on the ScrollRect component my IDE (xamarin mac) Is no showing any script, white page.
Is this intentional ? Is there a way to edit that script ?
Thnanks
Answer by Adam-Mechtley · Dec 11, 2016 at 06:53 PM
ScrollRect is defined in the UnityEngine.UI module. So, it is a scripted class, but exists in a dll so is not editable in that way. You need to either:
Just inherit from ScrollRect and make your own
Modify the source for the UI module and compile and use your own dll (see here: https://bitbucket.org/Unity-Technologies/ui)
Your answer
Follow this Question
Related Questions
Custom EditorWindow Scrollbars not working with GUILayout areas 1 Answer
Ho do I make unity autolayout fields shrink with the area inside which they are? 0 Answers
Help with scrollbar and offset 1 Answer
Query renderer.materials in prefabs in Editor without changing to instance 2 Answers
[solved]Using WWW instead of resources.load causes hang 1 Answer