Skip to content

Instantly share code, notes, and snippets.

@lukaspj
Created January 11, 2015 19:07
Show Gist options
  • Save lukaspj/6a72a236c533628d0f45 to your computer and use it in GitHub Desktop.
Save lukaspj/6a72a236c533628d0f45 to your computer and use it in GitHub Desktop.
SimSet setInst = (dynamic)new ObjectInstance("SimSet", "TestObject1")
{
Values =
{
Fish1 = "TestVal"
}
};
SimObject inst = (dynamic)new ObjectInstance("SimObject", "TestObject2")
{
Values =
{
Fish1 = "TestVal2"
}
};
setInst.add(inst);
omni.Util._echo(setInst["Fish1"] + " " + inst["Fish1"] + " " + ((SimObject)setInst.getObject(0))["Fish1"]);
// Outputs: TestVal TestVal2 TestVal2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment