Table of Contents

Class LocatableAttribute

Appends a resolve button to the field in inspector.

[AttributeUsage(AttributeTargets.Field)]
public class LocatableAttribute : PropertyAttribute
Inheritance
LocatableAttribute
Extension Methods

Constructors

LocatableAttribute()

public LocatableAttribute()

LocatableAttribute(params string[])

public LocatableAttribute(params string[] typeNames)

Parameters

typeNames string[]

Properties

InstaniatePrefabGuid

The GUID of the prefab to instantiate.

public string InstaniatePrefabGuid { get; set; }

Property Value

string

Remarks

It will try to instantiate the prefab with the GUID if no matching object found.

InstaniatePrefabPath

The path of the prefab to instantiate.

public string InstaniatePrefabPath { get; set; }

Property Value

string

Remarks

It will try to instantiate the prefab at the path if no matching object found.

InstaniatePrefabPosition

Where of the hierarchy to instantiate the prefab.

public LocatableAttribute.InstaniatePrefabHierachyPosition InstaniatePrefabPosition { get; set; }

Property Value

LocatableAttribute.InstaniatePrefabHierachyPosition

ResolveOnBuild

Should resolve the field when building the project. Currently is not yet implemented.

public bool ResolveOnBuild { get; set; }

Property Value

bool

TypeNames

The type names that this field can resolve to.

public string[] TypeNames { get; set; }

Property Value

string[]