Guides

SDK_ScriptingDefineSymbolPredicateAttribute

extends Attribute, ISerializationCallbackReceiver

Overview

Specifies a method to be used as a predicate to allow VRTK_SDKManager to automatically add and remove scripting define symbols. Only allowed on static methods that take no arguments and return a bool.

Class Variables

  • public const string RemovableSymbolPrefix - The prefix of scripting define symbols that must be used to be able to automatically remove the symbols. Default: "VRTK_DEFINE_"
  • public string symbol - The scripting define symbol to conditionally add or remove.
  • public BuildTargetGroup buildTargetGroup - The build target group to use when conditionally adding or removing symbol.

Class Methods

SDK_ScriptingDefineSymbolPredicateAttribute/2

public SDK_ScriptingDefineSymbolPredicateAttribute(string symbol, string buildTargetGroupName)

  • Parameters
    • string symbol - The scripting define symbol to conditionally add or remove. Needs to start with RemovableSymbolPrefix to be able to automatically remove the symbol. null and string.Empty are not allowed.
    • string buildTargetGroupName - The name of a constant of BuildTargetGroup. BuildTargetGroup.Unknown, null and string.Empty are not allowed.
  • Returns
    • none

Creates a new attribute.

SDK_ScriptingDefineSymbolPredicateAttribute/1

public SDK_ScriptingDefineSymbolPredicateAttribute(SDK_ScriptingDefineSymbolPredicateAttribute attributeToCopy)

  • Parameters
    • SDK_ScriptingDefineSymbolPredicateAttribute attributeToCopy - The attribute to copy.
  • Returns
    • none

Creates a new attribute by copying an existing one.