Player Web Link
Scripting with the PlayerWebLink class.
The PlayerWebLink
is used to link a Web with the player (or any) GameObject
.
Fields & Properties
webName
The name of the web to link with.
string
public
linkAutomatically
If the component should automatically link to the web. Automatic linking requires a Web to be loaded by a web view component. Disable this if you'd like to handle linking yourself.
bool
public
linkedWeb
The linked web. This will be null if there was no link made.
Web
public
obtainedSkills
A list of obtained skills. This is updated automatically as long as there is a link set.
List<SkillNode>
public
IsLinked
If linked with a web.
bool
public
Notable Methods
Link
The Link
method tries to link with a web using the webName
field. No link will be made if the relevant web view component is not found.
Alternatively, you can provide a Web reference to link to Web
without the need of a web view.
Unlink
The Unlink
method unlinks from a linked web. Nothing happens if there is no link set.
Get Skill Nodes
You can get the first SkillNode
by its skill ID or skill name with the GetSkillNode
method.
Alternatively, you can use GetSkillNodes
to get all skills in the graph with a matching skill ID or skill name.
Getting all obtained skill nodes has a special method called GetObtainedSkillNodes
.
Is Obtained
The IsObtained
method checks if a skill node with a specific skill ID or skill name is obtained.
Last updated