playMaker

Author Topic: Array_setTexture [SOLVED]  (Read 752 times)

10Polarbears

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Array_setTexture [SOLVED]
« on: March 08, 2012, 08:24:55 PM »
I am trying to work with the ArrayList sample scene GameObjectPositioning.
With platform set to iOS.

I am using this sample as a basis for creating an ArrayList of textures to replace the existing texture as supplied with the cube.

I have created and ArrayList called Texture ArrayList using the PM Array List Proxy script
PreFilled type : Texture
PreFill Count : 7
Then 7 textures.

State – find color array
I have placed a Find Array List called Texture ArrayList storing to GameObject Variable Texture ArrayList

State – get color from array
Placed Array List Get game object Texture ArrayList, get Texture data a texture variable texture

State - Set color
Set Material Texture
Placed Use Owner, Mat index 0, Named Texture _MainTex, Texture variable texture

It doesn't work. I get colored cubes but no texture not even the default logo texture.

Debug Game Object "Texture ArrayList" returns 'Texture Array List : none'
yet Debug Game Object "Color ArrayList" returns 'Texture Array List : Color ArrayList'

Sorry but I am a bit lost here. It looks to me as though I have replicated the example exactly but that the ArrayList for the textures doesn't seem to exist???

« Last Edit: March 13, 2012, 10:06:13 PM by Alex Chouls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: Array_setTexture
« Reply #1 on: March 11, 2012, 11:09:48 PM »
Hi,

 Yes, I replied on another post with the corrected actions ( it was a bug with textures).

http://hutonggames.com/playmakerforum/index.php?topic=1199.0

 Bye,

 Jean