0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vuforia エフェクト追加、オブジェクトの回転

Last updated at Posted at 2021-07-26

1, エフェクトPrefabを子オブジェクトにする
A669DFF0-E7B2-40ED-8336-EF8CEB62D848.jpeg

2, Rotate.csに下記スクリプトを記述する

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Rotate : MonoBehaviour
{
    public Vector3 vect;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        transform.Rotate(vect * Time.deltaTime);
    }
}

3, Rotate.csをアタッチして、Rotateの数値を変更する
CB704550-0E2A-4711-9E58-EBBFC5FD7A77.jpeg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?