コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

0 支持
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
Octavio B. (100 ポイント) General Discussion

回答 1

0 支持

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. 

Mads Maretty S. (Audiokinetic) (40.2k ポイント)
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);



    }
...