GithubHelp home page GithubHelp logo

Trigger Cursor Movement about bgcurve HOT 7 CLOSED

woistjadefox avatar woistjadefox commented on August 18, 2024
Trigger Cursor Movement

from bgcurve.

Comments (7)

banshee-gzzz avatar banshee-gzzz commented on August 18, 2024 1

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.

banshee-gzzz avatar banshee-gzzz commented on August 18, 2024 1

No more Reflection dependancy at runtime since 1.2.1
Tested on IOS, Android, WebGl

from bgcurve.

banshee-gzzz avatar banshee-gzzz commented on August 18, 2024

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.

woistjadefox avatar woistjadefox commented on August 18, 2024

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.

banshee-gzzz avatar banshee-gzzz commented on August 18, 2024

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.

woistjadefox avatar woistjadefox commented on August 18, 2024

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.

banshee-gzzz avatar banshee-gzzz commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.