Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Elapse

Pages: [1]
1
NGUI 3 Support / Re: Vector3.one and Vector3(1,1,1)
« on: April 03, 2018, 04:28:09 AM »
Thanks for "taping" :)

I wonder, why it works then, but I'll change it and try fading them out and in instead.

2
NGUI 3 Support / Vector3.one and Vector3(1,1,1)
« on: March 28, 2018, 08:28:42 AM »
Hi there,

I want to change the Buttons scale in two ways in different situations. For one way it works fine:

//when I start the menu
//position changes aswell

TweenScale tweenS = prefab.GetComponent<TweenScale>();
      tweenS.from = Vector3.zero;
      tweenS.to = Vector3.one;   <-----why Vector3(1,1,1) instead leads to an error? how to fix it?
      tweenS.PlayForward();

The Problem is, that I need to change the values to Vector3(1.5, 1.5, 1.5) for the next way. The Unity API says that Vector3.one is just a short version of Vector3(1,1,1). I'm confused.

Thanks for help and have a good day. Marten

3
NGUI 3 Support / ButtonColor with KeyBinding
« on: March 26, 2018, 01:54:07 PM »
Hi there,

I've went through the Video tutorials and want to create an Action Button. I've created a Button and added the KeyBinding script. In Playmode the Button Color changes like it should when I click it with the mouse but when I use the Key it doesn't change like it does in the video. It triggers the script I attached to it however. Whats the problem?

Thanks, Marten

Pages: [1]