Comments (7)
Oh, I see, thanks for information. We'll do some tests on IOS and I will post results here. In case there will be any issue with them we'll update the package.
from bgcurve.
No more Reflection dependancy at runtime since 1.2.1
Tested on IOS, Android, WebGl
from bgcurve.
Hi!
You can use BGCcCursorChangeLinear component (Cursor Change Linear) with speed set to 0.
Then change the speed when it's needed.
Here is an example:
public class Test : MonoBehaviour {
private BGCcCursorChangeLinear changeCursor;
void Start ()
{
changeCursor = GetComponent<BGCcCursorChangeLinear>();
}
void OnGUI ()
{
if (GUILayout.Button("Go Back")) changeCursor.Speed = -1;
else if (GUILayout.Button("Stop")) changeCursor.Speed = 0;
else if (GUILayout.Button("Go Forward")) changeCursor.Speed = 1;
}
}
from bgcurve.
Ahh I see! Thanks for the hint. I just didn't realize that there are more components on the object, since only BGCurve is visible in the inspector. Interesting that you could hide components from the inspector view completely, didn't know that is possible.
I've seen you are manipulating some vars via reflection for the inspector handling. Is this just in editor or also during run time?
from bgcurve.
Mainly for the Editor, but some methods, related to Custom Fields handling and converting points between Inlined and GameObjects also use reflection in Runtime.
Do you have any concerns about reflection?
from bgcurve.
Ok. I'm asking about reflection because the il2cpp scripting backend is AOT compiled and brings issues with certain reflection methods. (ios, webgl and some consoles make use of il2cpp in unity)
from bgcurve.
Update: we did some quick tests using WebGl, and it works just fine.
However, we decided to get rid of reflection at runtime completely, cause it was a bad idea to use it.
We will update the package soon (and we 'll test it on Webgl and Ios).
Thank you a lot for your feedback, if you have any other thoughts about improving the asset, please, let us know.
from bgcurve.
Related Issues (19)
- Adding points dynamically. HOT 1
- point distance HOT 3
- BGCurve line render component osx / ios issue HOT 10
- Large distance between points and delay bug? HOT 2
- Manipulate multiple objects HOT 3
- Point controls coordinates problem HOT 1
- Dragging an object attached to a cursor HOT 5
- Get the interpolated value of a field at any position on the curve HOT 2
- Attached points as parent-child relation HOT 1
- Spawn GameObject along point of curve? HOT 2
- Cursor won't move after spawn 2 or more cursor by script. HOT 3
- Add parameter to Rotate component to control revolution around tangent
- Text is almost invisible in BGCurve Custom and System Fields when using Unity Professional Skin HOT 1
- breadboard logic simulator HOT 4
- Controlling path progress within Animation editor. HOT 5
- Incompatibility with Unity 2019.3.13f1+ HOT 4
- How can i convert absent curve to smooth (symmetry bezier) in runtime? HOT 2
- Missing type or namespace errors on build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bgcurve.