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 - sawada

Pages: [1]
1
NGUI 3 Support / Re: How do change Anchors Type in Code?
« on: August 01, 2014, 05:58:46 AM »
move is impossible?

2
NGUI 3 Support / How do change Anchors Type in Code?
« on: July 31, 2014, 10:43:35 AM »
hi,guys.
I want to change Anchors Type.

For example.
create ngui sprite, set UISprite Anchors Type Unfield or Advanced.
play to game,i hope move ngui sprite.So set UISprite Anchors Type None.

But,I do not Understand Change  Anchors Type in Code.
How do you do that?

3
NGUI 3 Support / Re: how select UISprite Flip in code
« on: April 20, 2014, 01:03:54 AM »
I am sorry for the delay in my response.
i try it and succes it.
thanks a lot

4
NGUI 3 Support / how select UISprite Flip in code
« on: April 07, 2014, 11:40:46 AM »
As title.

change UISprite Flip use Inspector is easy.
select Flip Type Nothing,Horizontally,Vertically and Both.

but,donot select Flip ins code.


//example. change Sprite is ok
this.ui_sprite.spriteName = set_sprite_name;
//but error all
this.ui_sprite.Flip = 1; //??
this.ui_sprite.mFlip = Flip.Horizontally; //??
this.ui_sprite.FlipType= Flip.Horizontally; //??


i lock this.but I did not know
http://www.tasharen.com/ngui/docs/class_u_i_sprite.html

What should I do >:(

5
NGUI 3 Support / Re: OnDragDropRelease Error?
« on: January 10, 2014, 08:30:14 AM »
thanks ArenMook.
I will investigate more.
Reports Once you know what.

thanks a lot

6
NGUI 3 Support / Re: OnDragDropRelease Error?
« on: January 09, 2014, 09:14:29 AM »
thanks ArenMook,

I look OnDragDropStart,
And Write Under Code

  1.         protected virtual void OnDragDropStart ()
  2.         {
  3.                 // Automatically disable the scroll view
  4.                 if (mDragScrollView != null) mDragScrollView.enabled = false;
  5.                
  6.                 // Disable the collider so that it doesn't intercept events
  7.                 if (mCollider != null) mCollider.enabled = false;
  8.         }
  9.  

and

  1.         protected override void OnDragDropRelease (GameObject surface)
  2.         {      
  3.                 if (mCollider != null) mCollider.enabled = true;
  4.  
  5.                 if(surface.gameObject.name == this.gameObject.name){
  6.                         Debug.Log("why?");
  7.                 }
  8.                 Debug.Log("name " + surface.gameObject.name);
  9. }
  10.  

Start Test,
Drag Sprite so collider is don't disable,
Release Sprite collider is change disable,

but Drop othert splite so Call "why" Log :'(
this problem is not unresolved

I get advice agein?

7
NGUI 3 Support / OnDragDropRelease Error?
« on: January 08, 2014, 01:04:43 PM »
hi i am use Automatic translation,sorry

create splite and Attach Colider And Script,
this Script Extend [UIDragDropItem] and Use [OnDragDropRelease]


The [OnDragDropRelease] code is

protected override void OnDragDropRelease (GameObject surface)
{
if(surface.gameObject.name == this.gameObject.name){
   Debug.Log("why?");
}
Debug.Log("name " + surface.gameObject.name);
   }

In this state
drag splite,but may be Call "why" Log.

For example
drag at place without anything ,
drag at ather name ather splite,

This is what.  :'(

At what kind of time GameObject surface is Oneself splite

i use ngui [Version 3.0.8 f7]

Pages: [1]