English
全部
搜索
本地搜索
图片
视频
短视频
地图
更多
资讯
购物
航班
旅游
笔记本
报告不当内容
请选择下列任一选项。
无关
低俗内容
成人
儿童性侵犯
时长
全部
短(小于 5 分钟)
中(5-20 分钟)
长(大于 20 分钟)
日期
全部
过去 24 小时
过去一周
过去一个月
去年
清晰度
全部
低于 360p
360p 或更高
480p 或更高
720p 或更高
1080p 或更高
源
全部
Dailymotion
Vimeo
Metacafe
Hulu
VEVO
Myspace
MTV
CBS
Fox
CNN
MSN
价格
全部
免费
付费
清除筛选条件
安全搜索:
中等
严格
中等(默认)
关闭
筛选器
unity.com
Getting the value of a variable in a script from another script
I have 2 C# scripts and I want to access a variable in one of them from the other. I have read several posts and even watched the video tutorial on GetComponent but I cannot get the result. I am attaching the code below for your reference. There are 2 scripts: “scriptTest1” and “scriptTest2”. “scriptTest2” has a public integer ...
2014年7月27日
Unity Game Development
7:24:40
Learn Unity - Beginner's Game Development Tutorial
YouTube
freeCodeCamp.org
已浏览 280.5万 次
2021年4月15日
10:49:40
Learn Unity Beginner/Intermediate 2025 (FREE COMPLETE Course - Unity Tutorial)
YouTube
Code Monkey
已浏览 349.9万 次
2023年1月30日
46:39
The Unity Tutorial For Complete Beginners
YouTube
Game Maker's Toolkit
已浏览 604.8万 次
2022年12月2日
热门视频
How to get a variable from another script in Unity (the right way)
gamedevbeginner.com
2020年12月2日
How to move objects in Unity (3 methods with examples) - Game Dev Beginner
gamedevbeginner.com
2021年10月14日
1:48
How to Use GameObject from One Script in Another in Unity
YouTube
vlogize
2 个月之前
Unity Tutorials
12:55
UNITY 6 TUTORIAL PART 1 - LEARN THE BASICS - HOW TO MAKE A GAME FOR BEGINNERS
YouTube
Jimmy Vegas
已浏览 14.5万 次
2024年12月9日
3:55:19
HOW TO MAKE A GAME IN UNITY 6 - FULL COURSE TUTORIAL - HOW TO MAKE A GAME FOR BEGINNERS
YouTube
Jimmy Vegas
已浏览 2.5万 次
6 个月之前
5:31:05
Learn Unity 2D Beginner FREE COMPLETE Course (Unity Tutorial 2025)
YouTube
Code Monkey
已浏览 9.8万 次
4 个月之前
How to get a variable from another script in Unity (the right way)
2020年12月2日
gamedevbeginner.com
How to move objects in Unity (3 methods with examples) - Game D
…
2021年10月14日
gamedevbeginner.com
1:48
How to Use GameObject from One Script in Another in Unity
2 个月之前
YouTube
vlogize
2:00
How to Store Script Names in Variables in Unity
2 个月之前
YouTube
vlogize
1:36
How to Reference an Enum from Another Script in Unity
已浏览 1 次
2 个月之前
YouTube
vlogize
9:43
Unity Basics - How to access other scripts
已浏览 4891 次
2022年8月5日
YouTube
MetalStorm Games
Unity How to Attach a Script or a Component to a GameObject
2021年3月29日
sharpcoderblog.com
7:18
creating and transferring unity packages from one project to anot
…
已浏览 7787 次
2019年2月14日
YouTube
Johnathan Heath
How to COMMUNICATE BETWEEN SCRIPTS in Unity | Use Methods a
…
已浏览 161 次
2024年11月11日
YouTube
BAM GAMES & APPS - Unity Tutorials
Unity C# Access VARIABLE from ANOTHER SCRIPT!
已浏览 1.4万 次
2023年1月27日
YouTube
Freedom Coding
11:54
Access functions and variables in another script. Godot Engine.
已浏览 4.5万 次
2016年11月5日
YouTube
John Hamilton
58:22
How to Get Variables from Other Scripts in Unity — Presented by J
…
已浏览 3.7万 次
2020年1月29日
YouTube
Infallible Code
4:54
How to call a FUNCTION FROM A DIFFERENT SCRIPT in Unity
已浏览 7.2万 次
2020年5月30日
YouTube
GDT Solutions ES
9:09
Referencing Scripts and GameObjects in Unity
已浏览 6249 次
2021年12月12日
YouTube
SpawnCampGames
13:53
Unity C# - How to interact between scripts
已浏览 8.1万 次
2017年7月30日
YouTube
Danndx
6:31
How to Play Audio from a Script in Unity
已浏览 2.4万 次
2020年4月28日
YouTube
Game Dev Beginner
11:49
5 ways to Reference GameObjects in Unity3D
已浏览 13.4万 次
2018年3月21日
YouTube
Jason Weimann (GameDev)
9:33
Accessing Global Variables from Another Script - C# Unity Tutorial
已浏览 1.6万 次
2019年9月27日
YouTube
James Lester
7:34
How to Send Variables Between Scenes in Unity
已浏览 5.7万 次
2020年11月12日
YouTube
Wild Cockatiel Games
7:02
Unity 101: 5 ways to move Unity3D Objects
已浏览 23.5万 次
2017年11月25日
YouTube
Jason Weimann (GameDev)
7:51
How to Animate Characters in Unity 3D | Animator Explained
已浏览 95.3万 次
2020年5月31日
YouTube
iHeartGameDev
5:12
Better Data with Scriptable Objects in Unity! (Tutorial)
已浏览 21.3万 次
2020年9月23日
YouTube
Unity
15:10
Godot Tutorial Access Variables Across Nodes | Godot Inventory S
…
已浏览 1.4万 次
2019年9月20日
YouTube
Game Development Center
3:01
3 common Ways to transfer variable between script
已浏览 6.4万 次
2021年6月4日
YouTube
Dicode
2:38
How to attach scripts to gameobjects - Unity3D scripts - Pa
…
已浏览 1.4万 次
2018年12月7日
YouTube
Coffee Cup Dev
7:43
Unity - 2020+ Creating and applying Scripts in Unity
已浏览 1.9万 次
2020年10月8日
YouTube
Leon Marsden
0:47
[Quick Tutorial] How to access Variables from another script - Unity
已浏览 10.6万 次
2020年3月18日
YouTube
1Min Unity Tutorials
1:33
How to FIND the CHILD of a GameObject THROUGH SCRIPT i
…
已浏览 1.6万 次
2021年1月23日
YouTube
GDT Solutions ES
2:11
How to pass variables between scenes in Unity? [1]
已浏览 6.2万 次
2020年12月8日
YouTube
Coco Code
观看更多视频
更多类似内容
反馈