Return to Unity Plugin

Using custom region

All about Unity plug-in

Using custom region

Postby Jack Doe » February 27th, 2018, 4:27 am

Hi,

I'have a question about GAF custom region.

I'm trying to use a custom region in my project like this :
Code: Select all
GAFObject clipObject = _clip.transform.Find ("head").GetComponent<GAFObject> ();
clipObject.serializedProperties.useCustomAtlasTextureRect = true;
clipObject.serializedProperties.atlasTextureRect = new Rect (1064, 1508, 156, 143);

It works good...

However, in Unity inspector, there is a list with all custom regions on my GAFObject.
I would like to know if it is possible to access to these custom regions by the name in code, instead of using the Atlas Texture Rect (Something like : clipObject.serializedProperties.atlasCustomRegion = "ball1" )

Image

Thank you !
User avatar
Jack Doe
 
Posts: 6
Joined: August 26th, 2015, 4:30 am

Re: Using custom region

Postby Alexey Finkilshtein » February 27th, 2018, 11:43 am

Hi,

unfortunately it is not possible. sorry
User avatar
Alexey Finkilshtein
 
Posts: 417
Joined: May 21st, 2014, 6:53 am

Re: Using custom region

Postby Jack Doe » February 28th, 2018, 12:40 am

Thank you for your answer!
Can be an upcoming feature?
User avatar
Jack Doe
 
Posts: 6
Joined: August 26th, 2015, 4:30 am

Re: Using custom region

Postby Alexey Finkilshtein » February 28th, 2018, 1:54 am

Probably, but not sure when we could make it
User avatar
Alexey Finkilshtein
 
Posts: 417
Joined: May 21st, 2014, 6:53 am

Return to Unity Plugin

Who is online

Users browsing this forum: No registered users and 1 guest