Class LocatableAttribute
- Namespace
- JLChnToZ.VRC.Foundation
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
typeNamesstring[]
Properties
InstaniatePrefabGuid
The GUID of the prefab to instantiate.
public string InstaniatePrefabGuid { get; set; }
Property Value
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
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
ResolveOnBuild
Should resolve the field when building the project. Currently is not yet implemented.
public bool ResolveOnBuild { get; set; }
Property Value
TypeNames
The type names that this field can resolve to.
public string[] TypeNames { get; set; }
Property Value
- string[]