menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

0 votes
By some reason the float is not setting the RTPC value, I tried the code in a different version of wwise and it seems that it is not working on wwise 2021.1.2
dans General Discussion par Octavio B. (100 points)

1 Réponse

0 votes

Hi Octavio, 

Thanks for letting us know. I just tested it myself but I don't seem to have any problems using Wwise-types to set RTPCs. 
If the problem persists, please use the Bug Reporter located in the Wwise Launcher which should ask you for relevant information needed to identify the problem. 

par Mads Maretty S. (Audiokinetic) (40.2k points)
What am I doing wrong? I am calculating the distance of the object and I am using that float to set that value to the parameter, however it doesn´t work, The distance is being calculated but it doesn´t change the parameter

 [SerializeField] AK.Wwise.RTPC myDistanceParameter;
    [SerializeField] float distance;
    [SerializeField] GameObject player;
    [SerializeField] GameObject audioParameter;
    
    
    void FixedUpdate()
    {
        if (player == null)
        {
            PlayerCheck();

        }
        else PlayerDistance();

    }

   
    


    void PlayerCheck()
    {

        player = GameObject.FindGameObjectWithTag("Player");


    }

    void PlayerDistance()
    {
        distance = Vector3.Distance(gameObject.transform.position, player.transform.position);
        myDistanceParameter.SetValue(audioParameter, distance);



    }
...