playMaker

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

Pages: [1] 2
1
PlayMaker Help / Re: Copy ArrayList runtime content
« on: February 05, 2019, 02:38:27 AM »
Hi,

I send a example to you.
I write some comment in it.
I'm not a programmer and my English is poor, so maybe it's hard to understand.
And thanks for your help!

2
PlayMaker Help / Re: Copy ArrayList runtime content
« on: February 04, 2019, 02:27:14 AM »
I used "Resources.LoadAll<Sprite>(spriteSheetName)" to load and put them into arrayList.
And I have about 15000 sprites.
1 spriteSheet contain many sprites in it.
It needs many time to put all sprite in arrayList.

3
PlayMaker Help / Re: Copy ArrayList runtime content
« on: February 04, 2019, 02:06:34 AM »
I used this way before.
But it will spend a lot of time in loading sprite.
Hm...It seem doesn't have another way to do this...

And thanks for your help!

4
PlayMaker Help / Re: Copy ArrayList runtime content
« on: February 04, 2019, 01:45:40 AM »
I want to put all sprites in arrayList, and I can use it to change my character's color(Image).
It's a hard work to put them into arrayList one by one.
I want to find a way to put all sprites in arrayList easier, so I ask how to copy all arrayList value from runtime, but I think it doesn't.
So I need to find another way.
I want to make a script run in editor to put sprites in arrayList.
But it seems doesn't too?

5
PlayMaker Help / Re: Copy ArrayList runtime content
« on: February 04, 2019, 12:48:45 AM »
It can run, but the arrayList isn't get the value and show error "NullReferenceException".
This is my code, I want this script run in editor.
I don't know where is wrong...

   
Code: [Select]
public string spriteSheetName;
    public int arrayNumber;
    public SpriteRenderer NowRender;
    public PlayMakerArrayListProxy myArray;
    public Sprite Now_Sprite;

void LoadImage() {
   
        var subSprites = Resources.LoadAll<Sprite>(spriteSheetName);

        if(arrayNumber >= subSprites.Length){


}
 
        else{

NowRender.sprite = (Sprite)subSprites[arrayNumber];
Now_Sprite = (Sprite)subSprites[arrayNumber];
myArray.arrayList.Add(Now_Sprite);


}

6
PlayMaker Help / Re: Copy ArrayList runtime content
« on: February 03, 2019, 09:49:06 PM »
Hm...I have another question.
How do I use a script to add a sprite into PlayMakerArrayList?
I tried array.add but it doesn't work.

7
PlayMaker Help / Copy ArrayList runtime content
« on: February 02, 2019, 11:26:45 PM »
I have a problem, I want to copy arraylist content at runtime.
I know arraylist has a "Copy Arraylist Content" command,
but I want to copy hundred even thousand arraylists...
If I copy one by one, it needs a lot of time to do.
Have any way to do this more easier?

Sorry, my English is poor...

8
PlayMaker Help / Re: Right click on Transition not bringing up menu?
« on: September 13, 2018, 10:27:19 PM »
Hi!

I deleted the run FSM of the object,but it still show the error with the same object.
And the object name became [Missing Object].
After i reopen the unity, it show the error with another object.
It's hard to remove all run FSM because it a old work and use a lot of run FSM.

9
PlayMaker Help / Re: Right click on Transition not bringing up menu?
« on: September 13, 2018, 01:55:41 AM »
Hi.

My previous PlayMaker version is 1.7.4, it very old now.
And i just come back to my work.

I tried "Update All FSM's In Build" and "Assets/Reimport All",
But it still not work. And it show two errors on Console like my first image.

10
PlayMaker Help / Right click on Transition not bringing up menu?
« on: September 13, 2018, 01:11:14 AM »

Hi!

I just update my playmaker to 1.9.0.
I'm right-clicking over a Transition and want to change the state, but the menu is not coming up for it. I'd like to delete it. I tried restarting.
And once i right-clicking over a Transition, it will show two errors on Console.
Is there anyway to fix this?

Thanks!

11
PlayMaker Help / Re: Resourses Load Sprite
« on: May 26, 2016, 04:52:24 AM »
Hi Jean!


I want to make a action use for 2D sprites reskin.

Because the sprites of characters is too many, I can't do such many AnimationClip.

So it need to use script to get Sprites from the SpriteSheet and set them as Animation.



Thanks for your help!

12
PlayMaker Help / Re: Resourses Load Sprite
« on: May 25, 2016, 07:40:02 PM »
Hi Jean!


I make a package for you.

If it doesn't work, I will reupload.

13
PlayMaker Help / Re: Resourses Load Sprite
« on: May 25, 2016, 08:44:37 AM »
Hi Jean!


I want to make a action use for 2D sprites reskin.

Because the sprites of characters is too many, I can't do such many AnimationClip.


Thanks for your help!

14
PlayMaker Help / Re: Resourses Load Sprite
« on: May 24, 2016, 06:30:32 PM »
Thanks!

I want to 2D reskin animation, so I need to use Resourses Load to get sprite.

I find some easy way to get the sprite, but it need to use script.

It seems difficult for Playmaker to do this action.

Quote
    public string spriteSheetName;
    public int arrayNumber;

   void LateUpdate () {

        var subSprites = Resources.LoadAll<Sprite>(spriteSheetName);
        GetComponent<SpriteRenderer>().sprite = (Sprite)subSprites[arrayNumber];

}

15
PlayMaker Help / Resourses Load Sprite
« on: May 23, 2016, 10:12:13 PM »
Hello!

I have some problem about Resourses Load this action.

When I use this action to get sprite,what I only get is the first of sprite.

How can I get another sprite in the same sprite?

Pages: [1] 2