playMaker

Author Topic: Creating Raw Image after clicking a button  (Read 1151 times)

lmon92

  • Playmaker Newbie
  • *
  • Posts: 15
Creating Raw Image after clicking a button
« on: October 12, 2023, 10:30:48 AM »
Hi ,
Basic one I guess when you know the trick, but don't find out how to proceed.
I want to display a new picture when I click on a button.
So ,
I have created my button, and in FSM, with "UI Click" , I do the following actions
- Create object ( RawImage )
- UI Raw Image Set Texture
On paper, I guess this is it.
Now, how can I refer to the object created, as it doesn't exist yet ?
Pict : https://ibb.co/M6mbqGj

thanks !

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Creating Raw Image after clicking a button
« Reply #1 on: October 14, 2023, 07:54:49 AM »
on create object you need to store the object then you can reference it