playMaker

Author Topic: Store postprocessingProfile in FsmObject  (Read 1073 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Store postprocessingProfile in FsmObject
« on: July 25, 2018, 03:10:02 PM »
Hello,

My problem is that i want to:

create an action, in wich,
 user can set a profile to FsmObject
 send it to postprocessing volume as active profile

if i can set manually  my fsmobject to constraint it to receive a profile, in the can i'm unable to set it because i have this error message:

Code: [Select]
cannot implicitly convert type 'unityengine.object to unityengine.rendering.postprocessing.profile
part of code used:

Code: [Select]
[ObjectType(typeof(PostProcessProfile))]
[Tooltip("set a post processing profile")]
public FsmObject VolumeProfile;

UsedVolume.profile = VolumeProfile.Value;


so how do i convert this fsm value to my profile type ?



jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Store postprocessingProfile in FsmObject
« Reply #1 on: July 27, 2018, 09:37:13 AM »
Hi,

 yep, you'll have to do this differently with a class recipient or a way to reference profiles using a hashtable or something.

 Let me know if you keep struggling on this, I'll provide an action or a system.

Bye,

 Jean