Unity Answer
Unity Answer
Note: You will receive partial credit for each correct answer.
Fals
Code Snippet True
e
using Unity.Jobs;
using Unity.Burst;
using Unity.Mathematics;
using UnityEngine;
using System;
using UnityEngine;
using Unity.Entities;
[Serializable]
public struct EntityData :
IComponentData {
// ...
}
using UnityEngine;
using Unity.Entities;
using Unity.Mathematics;
Note: You will receive partial credit for each correct answer.
Fals
Snippet True
e
using UnityEngine;
using System.Collections;
using Unity.Entities;
using UnityEngine;
using Unity.Entities;
using UnityEngine;
Tru Fals
Code Snippet
e e
using UnityEngine;
using System.Collections;
using Unity.Entities;
using UnityEngine;
Note: You will receive partial credit for each correct answer.
Fals
Code Snippet True
e
using Unity.Entities;
using UnityEngine;
using UnityEngine;
using System.Collections;
using UnityEngine;
using System.Collections;
void Update()
{
Movement();
}
}
For each code snippet, select True if it is using Unity
naming conventions or False if it is not.
Tru Fals
Code Snippet
e e
Tru Fals
Code Snippet
e e
}
}
Answer Area
Tru Fals
Code Snippet
e e
Complete the code by selecting the correct options from the drop-
down lists.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
transform.RotateAround(sun.transform.position,
Vector3.up, rotationSpeed * Time.deltaTime);
ChangeRotationSpeed(4);
}
using UnityEngine;
using System.Collections;
void FixedUpdate()
{
rb.MovePosition(transform.position +
transform.forward * Time.deltaTime);
}
}
void Update()
{
if (Input.GetKey (KeyCode.LeftArrow))
{
Debug.Log("Left Arrow key is being held
down");
}
if (Input.GetKeyDown(KeyCode.UpArrow))
{
Debug.Log("Up Arrow key was pressed once");
}
if (Input.GetKeyUp(KeyCode.DownArrow))
{
Debug.Log("Down Arrow key was released");
}
}
Private void
SetMessageToDisplay(string stringToDisplay)
{
textToDisplay.text = stringToDisplay;
}
}
Fix the error by selecting the correct options from the drop-down
lists.
Answer Area
using UnityEngine;
Answer Area
void Start()
{
speedOfMotion = 10f;
rigidbody =
gameObject.GetComponent<Rigidbody>();
}
void FixedUpdate()
{
rigidbody.AddForce(transform.forward * speedForce
);
}
}
Use the following information from the API documentation
to answer this question.
Material.SetColor();
Declaration
Parameters
Description
Answer Area
using UnityEngine;
using System.Collections;
void Start()
{
audioSource =
GetComponent<AudioSource>();
}
if
(collision.relativeVelocity.magnitude > 2)
{
audioSource.Play();
}
}
}